:root {
  --primary: #C61F1F;
  --primary-dark: #7E0D0D;
  --secondary: #E53030;
  --bg-dark: #140C0C;
  --card-bg: #2A1212;
  --text-light: #FFF1E8;
  --gold: #F3C54D;
  --border-color: #6A1E1E;
  --header-offset: 122px;
}
body { padding-top: var(--header-offset); }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(126,13,13,0.5); background: var(--bg-dark); }
.header-top { background: #1a0a0a; width: 100%; border-bottom: 1px solid var(--border-color); }
.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: 24px; font-weight: 800; color: var(--gold); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.desktop-nav-buttons { display: flex; gap: 10px; align-items: center; }
.btn { text-decoration: none; padding: 10px 24px; border-radius: 6px; font-weight: 700; font-size: 15px; display: inline-block; transition: all 0.3s ease; color: var(--text-light); border: none; cursor: pointer; }
.btn-register { background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); color: #1a0a0a; }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(216,106,20,0.4); }
.btn-download { background: linear-gradient(180deg, #E53030 0%, #7E0D0D 100%); color: var(--text-light); }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,176,74,0.3); }
.main-nav { width: 100%; background: var(--primary); display: flex; border-top: 1px solid rgba(243,197,77,0.2); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 8px 20px; gap: 4px; width: 100%; }
.nav-link { color: var(--text-light); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 4px; transition: all 0.3s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: rgba(255,241,232,0.2); color: var(--gold); }
.hamburger-menu { display: none; }
.mobile-menu-overlay { display: none; }
.mobile-nav-buttons { display: none; }
@media (max-width: 768px) {
  :root { --header-offset: 108px; }
  .header-top { border-bottom: 1px solid var(--border-color); }
  .header-container { width: 100%; max-width: none; padding: 10px 15px; min-height: 60px; position: relative; justify-content: center; }
  .logo { font-size: 20px; flex: 0 0 auto; }
  .desktop-nav-buttons { display: none; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; z-index: 1001; padding: 5px; }
  .hamburger-menu span { display: block; width: 24px; height: 3px; background: var(--gold); border-radius: 3px; transition: all 0.3s ease; }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--text-light); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--text-light); }
  .main-nav { display: none; position: fixed; top: 0; left: 0; width: 260px; height: 100vh; background: var(--bg-dark); flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; border-right: 1px solid var(--border-color); border-top: none; overflow-y: auto; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 20px 15px; gap: 2px; width: 100%; max-width: none; }
  .nav-link { display: block; width: 100%; padding: 12px 10px; color: var(--text-light); border-bottom: 1px solid rgba(106,30,30,0.3); }
  .nav-link:hover, .nav-link.active { background: rgba(243,197,77,0.15); color: var(--gold); }
  .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999; }
  .mobile-menu-overlay.active { display: block; }
  .mobile-nav-buttons { display: flex; justify-content: center; gap: 8px; padding: 8px 10px; background: var(--bg-dark); border-bottom: 1px solid var(--border-color); position: relative; height: auto; }
  .mobile-nav-buttons .btn { flex: 1; text-align: center; padding: 10px 10px; font-size: 14px; }
  .mobile-nav-buttons .btn-download { padding: 10px 8px; }
  .page-content img, .article-content img, .post-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content, .site-main, main, .content-area { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }
  .site-header { min-height: auto; }
  .site-footer { padding: 30px 0 0 0; }
  .footer-bottom { padding: 15px 15px; text-align: center; }
}
.site-footer { background: var(--bg-dark); border-top: 2px solid var(--primary); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 50px 30px 30px; }
.footer-logo { font-size: 22px; font-weight: 800; color: var(--gold); text-decoration: none; display: block; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-section p { color: #d4bdbd; line-height: 1.6; font-size: 14px; }
.footer-title { color: var(--gold); font-size: 18px; margin-bottom: 15px; font-weight: 700; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #d4bdbd; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-color); text-align: center; padding: 15px 30px; }
.footer-bottom p { color: #d4bdbd; font-size: 14px; }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
