:root { --header-offset: 122px; --primary-color: #26A9E0; --auxiliary-color: #FFFFFF; --login-btn-color: #EA7C07; --dark-bg-color: #000000; }

body { margin: 0; font-family: 'Arial', sans-serif; padding-top: var(--header-offset); overflow-x: hidden; }

/* Site Header */
.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: var(--auxiliary-color); /* Fallback, specific sections will override */
}

.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary-color); /* Distinct background for top section */
    width: 100%;
    padding: 0 20px;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--auxiliary-color);
    text-decoration: none;
    display: flex; /* For potential image logo centering */
    align-items: center;
    height: 100%;
}

.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 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    text-align: center;
    color: var(--auxiliary-color);
}

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

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

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Mobile Nav Buttons (hidden by default on desktop) */
.mobile-nav-buttons {
    box-sizing: border-box;
    display: none; /* Hidden on desktop */
    min-height: 48px;
    background-color: #333; /* A neutral color, can be adjusted */
    width: 100%;
    padding: 0 15px;
    justify-content: center; /* Center buttons when displayed */
    align-items: center;
    gap: 10px;
}

/* Main Navigation */
.main-nav {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--dark-bg-color); /* Distinct background for main nav */
    width: 100%;
    padding: 0 20px;
}

.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;
    gap: 25px;
}

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

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

/* Hamburger Menu (Mobile) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    z-index: 1001;
}

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

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

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

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

/* Overlay for mobile menu */
.overlay {
    display: none; /* Hidden by default */
    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;
    opacity: 0;
}

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

/* Footer */
.site-footer {
    background-color: #333333; /* Dark grey for footer */
    color: var(--auxiliary-color);
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

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

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

.footer-description {
    line-height: 1.6;
    color: #CCCCCC;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #CCCCCC;
}

.footer-bottom p {
    margin: 0;
}

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

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

    /* Header adjustments */
    .header-top {
        min-height: 60px !important;
        height: 60px !important;
        padding: 0 15px; /* Smaller padding for mobile */
        position: relative; /* For absolute positioning of logo */
    }

    .header-container {
        width: 100%;
        max-width: none; /* No max-width on mobile */
        padding: 0; /* Handled by header-top padding */
        justify-content: flex-start; /* Adjust for hamburger menu on left */
    }

    .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); /* Leave space for hamburger */
    }

    .logo img {
        max-height: 56px !important; /* Smaller logo for mobile */
        max-width: 100%;
    }

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

    .hamburger-menu {
        display: flex; /* Show hamburger menu */
        position: relative;
        left: auto;
        z-index: 1001;
    }

    /* Mobile Nav Buttons (visible on mobile) */
    .mobile-nav-buttons {
        display: flex !important; /* Show mobile buttons */
        min-height: 48px;
        background-color: #444; /* Slightly different background */
        padding: 8px 15px; /* Adjust padding */
        box-sizing: border-box;
        overflow: hidden;
        flex-wrap: nowrap; /* Prevent buttons from wrapping */
        justify-content: center;
        align-items: center;
    }

    .mobile-nav-buttons .btn {
        flex: 1; /* Distribute space evenly */
        min-width: 0; /* Allow shrinking */
        max-width: calc(50% - 5px); /* Max width for two buttons with gap */
        padding: 8px 12px; /* Smaller padding */
        font-size: 13px; /* Smaller font size */
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Main Navigation (Mobile Menu) */
    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column; /* Vertical layout */
        position: fixed;
        top: var(--header-offset); /* Below header */
        left: 0;
        width: 70%; /* Side menu width */
        height: calc(100% - var(--header-offset));
        background-color: var(--dark-bg-color);
        overflow-y: auto;
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease;
        z-index: 1000; /* Below overlay */
        padding: 20px 0;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

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

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 15px;
        gap: 15px;
        width: 100%;
        max-width: none; /* No max-width on mobile */
        height: auto;
    }

    .nav-link {
        width: 100%;
        padding: 12px 10px;
        border-bottom: 1px solid #444;
        font-size: 16px;
        text-align: left;
    }
    .nav-link:last-child { border-bottom: none; }

    /* Footer adjustments */
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .footer-col h3, .footer-logo {
        text-align: center;
    }

    .footer-nav {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

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

/* No scroll on body when menu is active */
body.no-scroll {
    overflow: 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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
