html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; line-height: 1.6; color: #333333; padding-top: var(--header-offset); overflow-x: hidden; }
:root { --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-btn-color: #EA7C07; --header-top-bg: #1A7FB2; --main-nav-bg: #26A9E0; --footer-bg: #1A7FB2; --text-color-light: #FFFFFF; --header-offset: 122px; }

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

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--header-top-bg); 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(--text-color-light); text-decoration: none; display: flex; 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; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; width: 100%; background-color: #E0E0E0; padding: 0 20px; }

.btn { display: inline-block; padding: 10px 18px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease, transform 0.2s ease; white-space: nowrap; cursor: pointer; text-align: center; box-sizing: border-box; }
.btn-login { background-color: var(--login-btn-color); color: var(--text-color-light); }
.btn-login:hover { background-color: #CC6A00; transform: translateY(-2px); }
.btn-register { background-color: var(--secondary-color); color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-register:hover { background-color: #F0F0F0; transform: translateY(-2px); }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--main-nav-bg); 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: 20px; }
.nav-link { color: var(--text-color-light); text-decoration: none; padding: 8px 15px; transition: background-color 0.3s ease, color 0.3s ease; border-radius: 4px; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.2); color: var(--secondary-color); }

.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; background: none; border: none; padding: 0; margin-right: 15px; z-index: 1002; }
.hamburger-icon { display: block; position: absolute; left: 0; right: 0; height: 3px; background-color: var(--text-color-light); transition: all 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background-color: var(--text-color-light); transition: all 0.3s ease; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }
.hamburger-menu.active .hamburger-icon { background-color: transparent; }
.hamburger-menu.active .hamburger-icon::before { top: 0; transform: rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { bottom: 0; transform: rotate(-45deg); }

.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.overlay.active { display: block; opacity: 1; }

/* Footer Styles */
.site-footer { background-color: var(--footer-bg); color: var(--text-color-light); 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 40px; }
.footer-col h3 { color: var(--text-color-light); font-size: 18px; margin-bottom: 20px; }
.footer-col .footer-logo { font-size: 28px; font-weight: bold; color: var(--text-color-light); text-decoration: none; margin-bottom: 15px; display: block; }
.footer-col .footer-description { line-height: 1.8; margin-bottom: 20px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text-color-light); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--secondary-color); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; margin-top: 20px; }
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.7); }

.footer-slot-anchor-inner { display: block; min-height: 10px; }

/* 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 8px rgba(0, 0, 0, 0.1); }
    .header-top { min-height: 60px !important; height: 60px !important; padding: 0 15px; position: relative; }
    .header-container { max-width: none; justify-content: flex-start; }
    
    .hamburger-menu { display: block; order: -1; margin-right: 15px; }
    .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin: 0; }
    .logo img { max-height: 56px !important; width: auto; max-width: 100%; }

    .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;
        background-color: #F0F0F0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    .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 {
        min-height: 48px !important; height: auto;
        position: fixed; top: var(--header-offset); left: 0; bottom: 0;
        width: 280px; transform: translateX(-100%); transition: transform 0.3s ease;
        background-color: #2c3e50; /* Darker background for mobile menu */
        z-index: 1001;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        overflow-y: auto;
        display: none; /* Hidden by default */
    }
    .main-nav.active {
        transform: translateX(0);
        display: flex; /* Display when active */
    }
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        width: 100%; max-width: none;
        gap: 0;
    }
    .nav-link {
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-color-light);
    }
    .nav-link:last-child { border-bottom: none; }

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