.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); background: #B71C1C; }

.header-top { background: #7A0E0E; width: 100%; }

.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 30px; min-height: 68px; }

.logo { font-size: 1.8rem; font-weight: bold; color: #FFF5E1; text-decoration: none; letter-spacing: 1px; display: block; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }

.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; font-weight: bold; text-decoration: none; text-align: center; background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); color: #7A0E0E; transition: opacity 0.2s ease; font-size: 0.9rem; }

.btn:hover { opacity: 0.9; }

.btn-login { background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); }

.btn-register { background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); }

.main-nav { background: #C91F17; width: 100%; display: flex; min-height: 52px; align-items: center; }

.nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 25px; width: 100%; }

.nav-link { color: #FFF5E1; text-decoration: none; font-size: 1rem; padding: 12px 0; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }

.nav-link:hover, .nav-link.active { color: #F4D34D; border-bottom-color: #F4D34D; }

.mobile-nav-buttons { display: none; }

.hamburger-menu { display: none; }

.mobile-menu-overlay { display: none; }

.site-footer { background: #7A0E0E; color: #FFF5E1; padding-top: 40px; }

.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 0 20px 30px; }

.footer-logo { font-size: 1.5rem; font-weight: bold; color: #F4D34D; text-decoration: none; display: inline-block; margin-bottom: 15px; }

.footer-description { font-size: 0.9rem; line-height: 1.6; max-width: 300px; color: #FFF5E1; }

.footer-title { font-size: 1rem; margin-bottom: 15px; color: #F4D34D; }

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

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

.footer-links a { color: #FFF5E1; text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }

.footer-links a:hover { color: #F4D34D; text-decoration: underline; }

.footer-bottom { border-top: 1px solid #F2B544; padding: 15px 20px; text-align: center; }

.copyright { font-size: 0.85rem; margin: 0; color: #FFF5E1; }

@media (max-width: 768px) {
  :root { --header-offset: 146px; }
  body { padding-top: var(--header-offset); overflow-x: hidden; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  .header-container { width: 100%; max-width: none; padding: 8px 15px; min-height: 60px; }
  .nav-container { width: 100%; max-width: none; padding: 10px; }
  .logo { font-size: 1.4rem; }
  .site-footer { padding-top: 30px; }
  .footer-container { grid-template-columns: 1fr; gap: 25px; padding: 0 15px 20px; }
  .footer-description { max-width: 100%; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 260px; background: #B71C1C; flex-direction: column; align-items: stretch; padding-top: 70px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: baseline; gap: 0; padding: 10px; }
  .nav-link { font-size: 0.9rem; width: 100%; padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #FFF5E1; display: block; }
  .nav-link:hover { background: rgba(0, 0, 0, 0.2); color: #F4D34D; border-bottom-color: rgba(255, 255, 255, 0.1); }
  .mobile-nav-buttons { display: flex; justify-content: center; gap: 10px; padding: 8px 15px; background: #7A0E0E; min-height: 48px; align-items: center; }
  .mobile-nav-buttons .btn { width: auto; padding: 8px 16px; font-size: 0.8rem; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 35px; height: 35px; background: transparent; border: none; padding: 0; position: absolute; left: 15px; top: 20px; z-index: 1002; cursor: pointer; }
  .hamburger-menu span { display: block; width: 22px; height: 2px; background: #F4D34D; transition: transform 0.3s ease, opacity 0.3s ease; }
  .hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
  .mobile-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 1000; display: none; }
  .mobile-menu-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;
}
