:root { --header-offset: 122px; --primary-color: #FFD700; --secondary-color: #DC143C; --text-color: #333; --light-text-color: #fff; }

body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); color: var(--text-color); overflow-x: hidden; }

/* Header Styles */
.site-header { background-color: #222; /* Dark background for contrast with gold/red */ position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); min-height: 60px; display: flex; align-items: center; padding: 10px 0; }

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

.logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-decoration: none; flex-shrink: 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

.main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 25px; }

.main-nav .nav-link { color: var(--light-text-color); text-decoration: none; font-size: 16px; padding: 8px 0; transition: color 0.3s ease, border-bottom 0.3s ease; border-bottom: 2px solid transparent; }

.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }

.nav-buttons { display: flex; gap: 10px; flex-shrink: 0; margin-left: auto; }

.btn { padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 15px; transition: all 0.3s ease; text-align: center; white-space: nowrap; }

.btn-login { background-color: var(--secondary-color); color: var(--light-text-color); border: 2px solid var(--secondary-color); box-shadow: 0 4px 8px rgba(220, 20, 60, 0.4); }
.btn-login:hover { background-color: darken(var(--secondary-color), 10%); border-color: darken(var(--secondary-color), 10%); box-shadow: 0 6px 12px rgba(220, 20, 60, 0.6); transform: translateY(-2px); }

.btn-register { background-color: var(--primary-color); color: var(--text-color); border: 2px solid var(--primary-color); box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4); }
.btn-register:hover { background-color: darken(var(--primary-color), 10%); border-color: darken(var(--primary-color), 10%); box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6); transform: translateY(-2px); }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; position: relative; width: 30px; height: 20px; margin-right: 15px; }
.hamburger-menu .bar { display: block; width: 100%; height: 3px; background-color: var(--light-text-color); margin: 5px 0; transition: all 0.3s ease; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 998; opacity: 0; transition: opacity 0.3s ease; }
.mobile-menu-overlay.active { display: block; opacity: 1; }

/* Footer Styles */
.site-footer { background-color: #1a1a1a; color: #bbb; padding: 40px 0; font-size: 14px; }

.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding: 0 30px; }

.footer-col { flex: 1; min-width: 200px; }

.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-decoration: none; display: block; margin-bottom: 15px; }

.copyright { margin-top: 15px; line-height: 1.6; }

.footer-heading { font-size: 18px; color: var(--light-text-color); margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; display: block; width: 40px; height: 2px; background-color: var(--primary-color); position: absolute; left: 0; bottom: 0; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }

.footer-nav .nav-link { color: #bbb; text-decoration: none; transition: color 0.3s ease; }
.footer-nav .nav-link:hover { color: var(--primary-color); }

/* Mobile Specific Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  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%; }

  .site-header { padding: 5px 0; }
  .header-container { padding: 0 15px; width: 100%; justify-content: space-between; }
  .logo { flex: 1; text-align: center; font-size: 24px; margin: 0 10px; }
  .hamburger-menu { display: block; order: -1; margin-right: 0; }
  .nav-buttons { display: flex; order: 1; gap: 5px; }
  .nav-buttons .btn { padding: 8px 12px; font-size: 13px; border-radius: 20px; }

  .main-nav { display: none; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 80%; max-width: 300px; height: calc(100% - var(--header-offset)); background-color: #333; padding: 20px; box-shadow: 4px 0 10px rgba(0,0,0,0.3); transform: translateX(-100%); transition: transform 0.3s ease; align-items: flex-start; gap: 15px; overflow-y: auto; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 17px; }
  .main-nav .nav-link:last-child { border-bottom: none; }

  .footer-container { flex-direction: column; align-items: center; text-align: center; padding: 0 15px; }
  .footer-col { min-width: unset; width: 100%; margin-bottom: 20px; }
  .footer-heading::after { left: 50%; transform: translateX(-50%); }
  .footer-logo { margin-bottom: 10px; }
  .copyright { margin-top: 10px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
