:root { --header-offset: 122px; --primary-color: #E53935; --secondary-color: #FF5A4F; --text-main: #333333; --bg-card: #FFFFFF; --bg-main: #F5F7FA; --border-color: #E0E0E0; }

body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); color: var(--text-main); background-color: var(--bg-main); }

/* Shared Container Styles */
.header-container, .nav-container, .footer-top-grid { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

/* Header Styles */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: var(--primary-color); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }

.header-top { display: flex; align-items: center; min-height: 68px; height: 68px; background-color: var(--primary-color); overflow: hidden; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { font-size: 28px; font-weight: bold; color: var(--bg-card); text-decoration: none; display: block; padding: 5px 0; }
.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; background-color: var(--primary-color); padding: 0 20px; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 25px; text-decoration: none; color: var(--bg-card); font-weight: bold; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border: none; background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%); transition: transform 0.2s ease-in-out; }
.btn:hover { transform: translateY(-2px); }

.main-nav { display: flex; align-items: center; min-height: 52px; height: 52px; background-color: var(--secondary-color); overflow: hidden; }
.nav-container { display: flex; justify-content: center; align-items: center; height: 100%; gap: 25px; }
.nav-link { color: var(--bg-card); text-decoration: none; font-size: 16px; font-weight: bold; padding: 10px 0; transition: color 0.2s ease-in-out; }
.nav-link:hover { color: rgba(255, 255, 255, 0.8); }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; position: relative; }
.hamburger-menu span { display: block; width: 25px; height: 3px; background-color: var(--bg-card); margin: 5px 0; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 998; }
.overlay.active { display: block; }

/* Footer Styles */
.site-footer { background-color: var(--primary-color); color: var(--bg-card); padding: 40px 0 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }

.footer-col h3 { color: var(--bg-card); font-size: 18px; margin-bottom: 15px; }
.footer-logo { font-size: 28px; font-weight: bold; color: var(--bg-card); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; color: rgba(255, 255, 255, 0.8); word-wrap: break-word; overflow-wrap: break-word; }

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.2s ease-in-out; }
.footer-nav a:hover { color: var(--bg-card); }

.footer-bottom { text-align: center; padding-top: 20px; color: rgba(255, 255, 255, 0.6); }
.footer-bottom p { margin: 0; }

.footer-slot-anchor-inner { min-height: 1px; }

/* Mobile Responsive */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }

  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { padding-left: 15px; padding-right: 15px; width: 100%; max-width: none; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; }
  .logo img { max-height: 56px !important; }

  .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--primary-color);
  }
  .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; /* Hidden by default */
    position: fixed; top: var(--header-offset); left: 0; width: 100%; height: calc(100vh - var(--header-offset));
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    background-color: var(--secondary-color); /* Same as desktop main-nav */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto; z-index: 999; padding: 20px 0;
    box-sizing: border-box;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container { flex-direction: column; align-items: flex-start; width: 100%; max-width: none; padding: 0 15px; gap: 0; }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-link:last-child { border-bottom: none; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 20px; padding-left: 15px; padding-right: 15px; }
  .footer-col { text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-nav { text-align: center; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
