:root { --primary: #E53935; --secondary: #FF5A4F; --text-main: #333333; --card-bg: #FFFFFF; --background: #F5F7FA; --border: #E0E0E0; --header-offset: 122px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--background); color: var(--text-main); padding-top: var(--header-offset); } .site-header { position: fixed; top: 0; left: 0; width: 100%; background-color: #FFFFFF; box-shadow: 0 2px 15px rgba(0,0,0,0.2); z-index: 1000; } .header-top { background-color: #FFFFFF; width: 100%; border-bottom: 1px solid var(--border); } .header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; min-height: 68px; } .logo { font-size: 32px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: 1px; display: inline-block; line-height: 1.2; } @media (max-width: 768px) { .logo { font-size: 26px; } } .desktop-nav-buttons { display: flex; gap: 10px; align-items: center; } .btn { display: inline-block; padding: 10px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; transition: transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer; background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); color: #FFFFFF !important; box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3); } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4); } .btn-register { background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); color: #FFFFFF; } .btn-login { background: #FFFFFF; color: var(--primary) !important; border: 2px solid var(--primary); box-shadow: none; } .btn-login:hover { background: var(--primary); color: #FFFFFF !important; } .main-nav { background-color: #FFFFFF; width: 100%; display: flex; align-items: center; min-height: 52px; border-top: 1px solid var(--border); } .nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 5px; padding: 5px 20px; width: 100%; flex-wrap: wrap; } .nav-container a { color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 4px; transition: color 0.3s, background-color 0.3s; white-space: nowrap; } .nav-container a:hover, .nav-container a.active { color: var(--primary); background-color: rgba(229, 57, 53, 0.1); } .nav-container a:first-child { color: var(--primary); font-weight: 700; } .mobile-nav-buttons { display: none; } .hamburger-menu { display: none; } .mobile-menu-overlay { display: none; } @media (max-width: 768px) { :root { --header-offset: 110px; } body { padding-top: var(--header-offset); } .page-content { overflow-x: hidden; max-width: 100%; } .page-content img { max-width: 100% !important; height: auto !important; display: block; } body { overflow-x: hidden; } .site-header { min-height: auto; } .header-top { min-height: 60px; } .header-container { width: 100%; max-width: none; padding: 8px 15px; min-height: 60px; } .logo { font-size: 24px; } .desktop-nav-buttons { display: none; } .mobile-nav-buttons { display: flex; gap: 8px; justify-content: center; padding: 6px 15px; background-color: #FFFFFF; border-top: 1px solid var(--border); min-height: 48px; align-items: center; } .mobile-nav-buttons .btn { padding: 8px 20px; font-size: 13px; flex: 1; max-width: 160px; text-align: center; } .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; position: fixed; top: 10px; left: 10px; z-index: 1003; } .hamburger-menu span { display: block; width: 22px; height: 2px; background-color: var(--primary); margin: 6px 0; transition: transform 0.3s ease, opacity 0.3s ease; } .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger-menu.active span:nth-child(2) { opacity: 0; } .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } .main-nav { display: none; position: fixed; top: 0; left: 0; width: 280px; height: 100vh; background-color: #FFFFFF; z-index: 1002; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 100px 20px 30px; box-shadow: 2px 0 20px rgba(0,0,0,0.2); transition: transform 0.3s ease, opacity 0.3s ease; overflow-y: auto; } .main-nav.active { display: flex; transform: translateX(0); } .main-nav:not(.active) { display: none; transform: translateX(-100%); } .nav-container { max-width: none; width: 100%; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 0; padding: 0; flex-wrap: nowrap; } .nav-container a { display: block; width: 100%; padding: 12px 15px; margin: 2px 0; border-radius: 6px; font-size: 16px; border-bottom: 1px solid #f0f0f0; text-align: left; } .nav-container a:hover { background-color: rgba(229, 57, 53, 0.1); } .nav-container a:first-child { font-weight: 600; } .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1001; transition: opacity 0.3s ease; } .mobile-menu-overlay.active { display: block; } .header-top { border-bottom: none; } }
  @media (max-width: 768px) {
    .header-container { display: flex; justify-content: center; padding-left: 40px; }
    .header-top { min-height: 60px; }
    .logo { position: relative; z-index: 1002; }
  }
  @media (min-width: 769px) {
    .hamburger-menu { display: none; }
    .mobile-menu-overlay.active { display: none; }
  } .site-footer { background-color: #2C3E50; color: #FFFFFF; padding: 60px 20px 0; margin-top: 60px; } .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; } .footer-column h4 { font-size: 16px; margin-bottom: 20px; color: #FFFFFF; font-weight: 600; } .footer-column p { font-size: 14px; line-height: 1.6; color: #CCC; margin-bottom: 10px; } .footer-logo { font-size: 28px; font-weight: 700; color: #FFFFFF; text-decoration: none; display: inline-block; margin-bottom: 15px; } .footer-nav { display: flex; flex-direction: column; gap: 8px; } .footer-nav a { color: #CCC; text-decoration: none; font-size: 14px; transition: color 0.3s; padding: 4px 0; } .footer-nav a:hover { color: #FF5A4F; } .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 14px; color: #AAA; } .footer-bottom p { margin: 5px 0; } .copyright-year { color: #FF5A4F; font-weight: 600; }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
