:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); overflow-x: hidden; font-family: 'Arial', sans-serif; margin: 0; background-color: #0D0E12; color: #FFF3E6; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.header-top { min-height: 68px; height: 68px; background-color: #0D0E12; display: flex; align-items: center; overflow: hidden; position: relative; }
.header-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 100%; box-sizing: border-box; }
.logo { font-size: 28px; font-weight: bold; color: #FF8C1A; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.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; }
.btn { background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); color: #FFF3E6; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: opacity 0.3s ease; white-space: nowrap; border: none; cursor: pointer; display: inline-block; text-align: center; }
.btn:hover { opacity: 0.9; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #D96800; }
.hamburger-menu { display: none; }
.main-nav { min-height: 52px; height: 52px; background-color: #17191F; display: flex; align-items: center; overflow: hidden; }
.nav-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: center; align-items: center; height: 100%; box-sizing: border-box; }
.nav-link { color: #FFF3E6; text-decoration: none; padding: 10px 15px; font-weight: 500; white-space: nowrap; transition: color 0.3s ease, background-color 0.3s ease; display: block; }
.nav-link:hover { color: #FF8C1A; background-color: rgba(255, 255, 255, 0.1); border-radius: 4px; }
.overlay { display: none; }

.site-footer { background-color: #0D0E12; color: #FFF3E6; padding: 40px 20px 20px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: #FF8C1A; font-size: 18px; margin-bottom: 15px; font-weight: bold; }
.footer-logo { font-size: 24px; font-weight: bold; color: #FF8C1A; text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { font-size: 14px; line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li a { color: #FFF3E6; text-decoration: none; font-size: 14px; line-height: 2.2; transition: color 0.3s ease; }
.footer-nav li a:hover { color: #FF8C1A; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #A84F0C; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { font-size: 13px; color: #FFA53A; }
.footer-slot-anchor-inner { min-height: 1px; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }
  .header-top { min-height: 60px !important; height: 60px !important; position: relative; }
  .header-top .header-container { padding: 0; width: 100%; max-width: none; justify-content: center; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin-left: 45px; margin-right: 45px; /* Offset for hamburger */ }
  .logo img { max-height: 56px !important; }
  .hamburger-menu { display: block; background: none; border: none; font-size: 30px; color: #FFF3E6; cursor: pointer; padding: 0; z-index: 1002; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
  .hamburger-menu.active { color: #FF8C1A; }
  .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: #D96800;
    justify-content: center;
  }
  .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(100% - var(--header-offset));
    background-color: #17191F;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1001;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; padding: 0; width: 100%; max-width: none; }
  .nav-link { width: 100%; text-align: left; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-link:last-child { border-bottom: none; }
  .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 999; }
  .overlay.active { display: block; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-col { margin-bottom: 20px; }
  .footer-bottom { padding-left: 15px; padding-right: 15px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
