html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; color: #333333; line-height: 1.6; background-color: #F5F7FA; padding-top: var(--header-offset); overflow-x: hidden; }

:root { --header-offset: 122px; --primary-color: #E53935; --secondary-color: #FF5A4F; --text-main: #333333; --border-color: #E0E0E0; --card-bg: #FFFFFF; --bg-main: #F5F7FA; }

/* Site Header */
.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(--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-left: 30px; padding-right: 30px; }

.logo { font-size: 28px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.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: var(--primary-color); padding: 0 15px; }

.btn { padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 15px; }
.btn-register { background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%); color: #FFFFFF; box-shadow: 0 4px 8px rgba(229, 57, 53, 0.4); }
.btn-register:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 12px rgba(229, 57, 53, 0.6); }
.btn-login { background-color: #FFFFFF; color: var(--primary-color); border: 1px solid var(--primary-color); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.btn-login:hover { background-color: var(--primary-color); color: #FFFFFF; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-icon { display: block; width: 25px; height: 3px; background-color: #FFFFFF; border-radius: 2px; position: relative; transition: all 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; width: 25px; height: 3px; background-color: #FFFFFF; border-radius: 2px; position: absolute; left: 0; transition: all 0.3s ease; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }
.hamburger-menu.active .hamburger-icon { background-color: transparent; }
.hamburger-menu.active .hamburger-icon::before { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { transform: translateY(-8px) rotate(-45deg); }

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

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

/* Site Footer */
.site-footer { background-color: #222222; color: #CCCCCC; padding: 40px 0 20px; font-size: 14px; }
.site-footer h3 { color: #FFFFFF; font-size: 18px; margin-bottom: 20px; }
.site-footer a { color: #CCCCCC; text-decoration: none; transition: color 0.3s ease; }
.site-footer a:hover { color: var(--secondary-color); }

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

.footer-col .footer-logo { font-size: 24px; font-weight: bold; color: #FFFFFF; display: block; margin-bottom: 15px; }
.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-bottom { border-top: 1px solid #333333; padding-top: 20px; margin-top: 30px; }
.footer-bottom .footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; flex-wrap: wrap; }
.footer-legal-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

.footer-slot-anchor { display: none; } /* Hidden by default, used for content injection */
.footer-slot-anchor-inner { display: none; } /* Hidden by default, used for content injection */
.footer-slot-anchor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.footer-slot-anchor-grid .footer-slot-anchor-inner { display: block; } /* Make inner anchors visible for injection */

/* Responsive */
@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%; }

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

  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 0;
  }
  .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;
  }

  .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
  .hamburger-menu.active { position: fixed; left: 15px; top: 20px; transform: none; }

  .main-nav {
    min-height: auto !important;
    height: 100vh;
    position: fixed; top: 0; left: 0;
    width: 280px; /* Adjust as needed */
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px; /* Space for hamburger icon if needed */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 0; width: 100%; max-width: none; }
  .nav-link { width: 100%; padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 16px; text-align: left; }
  .nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.2); border-radius: 0; }

  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px; }
  .footer-col { margin-bottom: 20px; }
  .footer-bottom .footer-container { flex-direction: column; align-items: center; padding: 0 15px; text-align: center; }
  .footer-legal-nav { flex-direction: column; gap: 10px; margin-bottom: 15px; }
  .footer-legal-nav li { margin-bottom: 0; }
  .footer-slot-anchor-grid { grid-template-columns: 1fr; padding: 0 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;
  }
}
