:root { --header-offset: 122px; --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-btn-color: #EA7C07; --text-color: #333333; --dark-blue: #1E88B8; }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: var(--header-offset);
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden; /* Prevent horizontal scroll on body */
}

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

.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--dark-blue); /* Darker blue for header top */
    width: 100%;
    color: var(--secondary-color);
}

.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 {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    padding: 0;
    line-height: 1;
}

.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; /* Hidden by default on desktop */
    min-height: 48px;
    background-color: var(--secondary-color);
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: var(--secondary-color);
    border: none;
}

.btn-login {
    background-color: var(--login-btn-color); /* Specific color for login */
}

.btn-login:hover {
    background-color: #D46F00;
    transform: translateY(-1px);
}

.btn-register {
    background-color: var(--primary-color);
}

.btn-register:hover {
    background-color: #208DC4;
    transform: translateY(-1px);
}

.main-nav {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary-color); /* Primary color for main nav */
    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-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #E0F7FA; /* Lighter shade for hover/active */
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    position: relative; /* Ensure it's above other elements */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

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

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

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

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

.overlay.active {
    display: block;
    opacity: 1;
}

/* Footer styles */
.site-footer {
    background-color: #333333; /* Dark background for footer */
    color: #CCCCCC;
    padding: 40px 0 20px;
    line-height: 1.6;
}

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

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

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

.footer-description {
    font-size: 14px;
    color: #AAAAAA;
    word-wrap: break-word; /* Ensure description wraps */
    overflow-wrap: break-word;
}

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

.footer-nav li a {
    color: #AAAAAA;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444444;
    font-size: 13px;
    color: #888888;
}

.footer-bottom p {
    margin: 0;
}

.footer-slot-anchor-inner {
    /* Styles for the inner slot anchor if needed, otherwise keep empty */
}

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

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

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

    .header-top {
        min-height: 60px !important;
        height: 60px !important;
        padding-left: 15px; /* Adjust padding for mobile */
        padding-right: 15px;
    }

    .header-container {
        width: 100%;
        max-width: none;
        padding-left: 0; /* Handled by header-top padding */
        padding-right: 0;
        justify-content: flex-start; /* Align hamburger left */
        position: relative; /* For logo absolute positioning */
    }

    .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); /* Leave space for hamburger */
    }
    .logo img {
        max-height: 56px !important;
    }

    .hamburger-menu {
        display: flex;
        order: -1; /* Place hamburger first */
        margin-right: auto; /* Push logo to center */
    }

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

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

    .mobile-nav-buttons .btn {
        flex: 1; min-width: 0;
        max-width: calc(50% - 5px); /* For two buttons with 10px gap */
        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: auto; /* Allow menu to expand vertically */
        position: fixed;
        top: var(--header-offset); /* Position below fixed header and buttons */
        left: 0;
        width: 80%; /* Menu width */
        max-width: 300px;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease;
        z-index: 1001;
        display: none; /* Hidden by default, toggled by JS */
    }

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

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

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

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

    .nav-menu li a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

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

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

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

    .footer-bottom {
        padding: 15px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
