:root { --header-offset: 122px; --primary: #E53935; --secondary: #FF5A4F; --btn-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); --bg-page: #F5F7FA; --card-bg: #FFFFFF; --text-main: #333333; --border-color: #E0E0E0; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-page); color: var(--text-main); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== SITE HEADER (Floating) ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.15); background-color: #FFFFFF; }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background: linear-gradient(135deg, #1A1A2E 0%, #2D1B2E 100%); border-bottom: 2px solid var(--primary); }
.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-left: 30px; padding-right: 30px; }
.logo { font-size: 26px; font-weight: 800; color: #FFFFFF; letter-spacing: 0.5px; text-transform: uppercase; display: inline-block; white-space: nowrap; transition: color 0.3s ease; }
.logo:hover { color: var(--secondary); }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; border: none; line-height: 1.4; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--btn-gradient); color: #FFFFFF !important; box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(229, 57, 53, 0.6); background: linear-gradient(180deg, #FF6B60 0%, #D32F2F 100%); }
.btn-outline { background: transparent; color: #FFFFFF !important; border: 2px solid var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #FFFFFF !important; }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; z-index: 1001; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; }
.hamburger-line { display: block; width: 26px; height: 3px; background-color: #FFFFFF; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: #FFFFFF; border-bottom: 1px solid var(--border-color); }
.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; width: 100%; }
.nav-list { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; flex-wrap: nowrap; width: 100%; }
.nav-item { margin: 0; }
.nav-link { display: inline-block; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--text-main); border-radius: 4px; transition: color 0.2s ease, background 0.2s ease; white-space: nowrap; }
.nav-link:hover { color: var(--primary); background-color: rgba(229, 57, 53, 0.08); }
.nav-link.active { color: var(--primary); position: relative; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 2px; background: var(--primary); border-radius: 1px; }
.menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.menu-overlay.active { display: block; opacity: 1; }

/* ===== SITE FOOTER ===== */
.site-footer { background: linear-gradient(180deg, #1A1A2E 0%, #0F0F1A 100%); color: #DDDDDD; margin-top: 60px; font-size: 14px; }
.footer-top-row { width: 100%; }
.footer-slot-anchor-outer { width: 100%; }
.footer-main { width: 100%; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 50px 30px 20px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { font-size: 24px; font-weight: 800; color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }
.footer-logo:hover { color: var(--secondary); }
.footer-description { margin: 0; color: #BBBBBB; line-height: 1.7; word-wrap: break-word; overflow-wrap: break-word; font-size: 13.5px; }
.footer-heading { color: #FFFFFF; font-size: 17px; font-weight: 700; margin: 0 0 16px 0; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--secondary); border-radius: 1px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav li { margin: 0; }
.footer-nav a { color: #BBBBBB; transition: color 0.2s ease, padding-left 0.2s ease; font-size: 13.5px; display: inline-block; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav a:hover { color: var(--secondary); padding-left: 4px; }
.footer-dynamic-col { min-width: 0; }
.footer-slot-anchor-inner { width: 100%; }
.footer-mid-area { width: 100%; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 30px; text-align: center; background: rgba(0,0,0,0.3); }
.footer-copyright { margin: 0; color: #999999; font-size: 13px; }

/* ===== RESPONSIVE (Mobile <= 768px) ===== */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 20px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; min-height: 48px; width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #2D1B2E; }
  .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; }
  .hamburger-menu { display: flex; position: relative; z-index: 1001; order: -1; }
  .main-nav { min-height: 48px !important; height: 48px !important; display: none; position: fixed; top: 0; left: 0; width: 280px; max-width: 85vw; height: 100vh !important; min-height: 100vh !important; background-color: #FFFFFF; flex-direction: column; justify-content: flex-start; align-items: stretch; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; box-shadow: 4px 0 20px rgba(0,0,0,0.3); overflow-y: auto; padding-top: 80px; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding-left: 10px; padding-right: 10px; flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; }
  .nav-list { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; width: 100%; }
  .nav-item { width: 100%; }
  .nav-link { display: block; width: 100%; padding: 14px 20px; font-size: 15px; border-radius: 0; border-bottom: 1px solid var(--border-color); }
  .nav-link.active::after { display: none; }
  .nav-link.active { background-color: rgba(229, 57, 53, 0.08); border-left: 4px solid var(--primary); }
  .footer-container { padding: 40px 20px 20px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-mid-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding: 18px 20px; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }
}

@media (max-width: 480px) {
  .logo { font-size: 18px; }
  .footer-logo { font-size: 20px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
