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

html { scroll-behavior: smooth; }
body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); color: var(--text-main-color); background-color: var(--bg-color); overflow-x: hidden; }

/* Header Styles */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--card-bg-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); box-sizing: border-box; }

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); 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 { color: #FFFFFF; font-size: 28px; font-weight: bold; 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; }
.btn { padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 15px; text-align: center; white-space: nowrap; transition: all 0.3s ease; border: none; cursor: pointer; display: inline-block; box-sizing: border-box; color: #FFFFFF; }
.btn-login { background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); }
.btn-register { background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--primary-color); width: 100%; padding: 0 15px; justify-content: center; align-items: center; gap: 10px; }

.main-nav { box-sizing: border-box; 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: 0 15px; font-size: 16px; font-weight: bold; white-space: nowrap; height: 100%; display: flex; align-items: center; transition: background-color 0.3s ease; }
.nav-link:hover { background-color: rgba(255, 255, 255, 0.2); }

.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; z-index: 1001; background: none; border: none; padding: 0; }
.hamburger-icon { display: block; position: absolute; left: 0; top: 50%; width: 100%; height: 3px; background-color: #FFFFFF; transform: translateY(-50%); transition: background-color 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; position: absolute; width: 100%; height: 3px; background-color: #FFFFFF; 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 { top: 0; transform: rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { top: 0; transform: rotate(-45deg); }

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

/* Footer Styles */
.site-footer { background-color: var(--text-main-color); color: #FFFFFF; padding: 40px 20px 20px; box-sizing: border-box; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: var(--secondary-color); font-size: 18px; margin-bottom: 15px; }
.footer-logo { color: #FFFFFF; font-size: 24px; font-weight: bold; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; 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: 8px; }
.footer-nav a { color: #FFFFFF; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--secondary-color); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { margin: 0; }

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

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

  .header-top { height: 60px; padding: 0 15px; }
  .header-container { max-width: none; position: relative; }
  .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); }
  .logo img { max-height: 56px !important; display: block !important; max-width: 100%; height: auto; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; min-height: 48px; background-color: var(--primary-color); width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; }
  .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 { height: 100vh; width: 280px; position: fixed; top: 0; left: 0; background-color: var(--text-main-color); padding-top: var(--header-offset); box-shadow: 2px 0 5px rgba(0,0,0,0.2); transform: translateX(-100%); transition: transform 0.3s ease; display: none; flex-direction: column; justify-content: flex-start; align-items: flex-start; overflow-y: auto; }
  .main-nav.active { transform: translateX(0); display: flex; }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 20px 0; width: 100%; max-width: none; }
  .nav-link { width: 100%; padding: 12px 20px; justify-content: flex-start; font-size: 16px; }
  .nav-link:hover { background-color: rgba(255, 255, 255, 0.1); }

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

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

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

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