html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, sans-serif; background-color: #B71C1C; color: #FFF5E1; padding-top: var(--header-offset); }
:root { --header-offset: 122px; --primary-color: #C91F17; --secondary-color: #E53935; --text-main: #FFF5E1; --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); --card-bg: #D32F2F; --border-color: #F2B544; --glow-color: #FFCC66; --gold-color: #F4D34D; --deep-red: #7A0E0E; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); background-color: var(--deep-red); }
.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-red); width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.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; padding: 0 20px; }
.logo { font-size: 28px; font-weight: bold; color: var(--text-main); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.logo:hover { color: var(--gold-color); }
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--deep-red); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-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-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.main-nav .nav-list a { color: var(--text-main); text-decoration: none; font-size: 16px; padding: 10px 0; transition: color 0.3s ease, border-bottom 0.3s ease; white-space: nowrap; }
.main-nav .nav-list a:hover, .main-nav .nav-list a.active { color: var(--gold-color); border-bottom: 2px solid var(--gold-color); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; cursor: pointer; border: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; /* Default text for gold buttons */ }
.btn-primary { background: var(--btn-gradient); color: #333; box-shadow: 0 4px 10px rgba(255, 204, 102, 0.4); border: 1px solid var(--border-color); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(255, 204, 102, 0.6); }
.btn-secondary { background-color: var(--secondary-color); color: var(--text-main); border: 1px solid var(--text-main); box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4); }
.btn-secondary:hover { transform: translateY(-2px); background-color: #FF4D4D; box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6); }

/* Hamburger Menu */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 24px; position: relative; z-index: 1002; }
.hamburger-icon { display: block; width: 100%; height: 3px; background-color: var(--text-main); position: absolute; left: 0; top: 50%; transform: translateY(-50%); transition: background-color 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; width: 100%; height: 3px; background-color: var(--text-main); position: absolute; left: 0; transition: transform 0.3s ease; }
.hamburger-icon::before { top: -10px; }
.hamburger-icon::after { top: 10px; }
.hamburger-menu.active .hamburger-icon { background-color: transparent; }
.hamburger-menu.active .hamburger-icon::before { transform: translateY(10px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { transform: translateY(-10px) rotate(-45deg); }

/* Overlay */
.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.7); z-index: 999; }
.overlay.active { display: block; }

/* Footer */
.site-footer { background-color: var(--background); padding: 40px 20px 20px; color: var(--text-main); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: var(--gold-color); font-size: 18px; margin-bottom: 15px; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--text-main); text-decoration: none; text-transform: uppercase; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--gold-color); }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { margin: 0; }
.footer-slot-anchor-inner { min-height: 1px; }

/* Responsive */
@media (max-width: 1024px) {
  .header-container, .nav-container, .footer-grid { padding: 0 15px; }
  .nav-list { gap: 15px; }
  .main-nav .nav-list a { font-size: 15px; }
}

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }
  .header-top { height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding: 0 15px; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; min-height: 48px; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--deep-red); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .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 { display: none; position: fixed; top: var(--header-offset); left: 0; width: 80%; max-width: 300px; height: calc(100vh - var(--header-offset)); overflow-y: auto; background-color: var(--card-bg); transform: translateX(-100%); transition: transform 0.3s ease; flex-direction: column; align-items: flex-start; z-index: 1001; border-right: 1px solid var(--border-color); padding-top: 10px; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 0 15px; height: auto; }
  .nav-list { flex-direction: column; width: 100%; gap: 0; }
  .main-nav .nav-list li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .main-nav .nav-list a { display: block; padding: 12px 0; font-size: 16px; border-bottom: none; }
  .main-nav .nav-list a:hover, .main-nav .nav-list a.active { border-bottom: none; color: var(--gold-color); background-color: rgba(255, 255, 255, 0.05); }
  .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-col:nth-child(3), .footer-col:nth-child(4) { grid-column: span 2; }
  .footer-col:nth-child(4) { display: none; /* Hide for mobile if it's purely a dynamic slot and not filled by default */ }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:nth-child(3), .footer-col:nth-child(4) { grid-column: span 1; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
