html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; background-color: #0D0E12; color: #FFF3E6; padding-top: var(--header-offset); overflow-x: hidden; }
:root { --header-offset: 122px; --primary-color: #FF8C1A; --accent-color: #FFA53A; --card-bg: #17191F; --text-main: #FFF3E6; --border-color: #A84F0C; --glow-color: #FFB04D; --deep-orange: #D96800; }

/* 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.5); box-sizing: border-box; }

.header-top { background-color: #0D0E12; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; box-sizing: border-box; }
.header-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; box-sizing: border-box; }

.logo { color: #FFF3E6; text-decoration: none; font-size: 28px; font-weight: bold; display: flex; align-items: center; height: 100%; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }

.hamburger-menu { display: none; width: 30px; height: 24px; cursor: pointer; flex-direction: column; justify-content: space-between; position: relative; z-index: 1001; }
.hamburger-menu span { display: block; height: 3px; width: 100%; background-color: #FFF3E6; border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #17191F; padding: 0 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; color: #FFF3E6; transition: all 0.3s ease; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); border: none; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4); }

.main-nav { background-color: #17191F; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; box-sizing: border-box; }
.nav-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; box-sizing: border-box; }
.nav-link { color: #FFF3E6; text-decoration: none; padding: 8px 15px; font-weight: 500; transition: color 0.3s ease, background-color 0.3s ease; border-radius: 5px; white-space: nowrap; }
.nav-link:hover { background-color: rgba(255, 140, 26, 0.2); color: #FFA53A; }

/* Footer */
.site-footer { background-color: #0D0E12; padding: 40px 0 20px; font-size: 14px; line-height: 1.6; border-top: 1px solid #1f2128; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 30px 40px; box-sizing: border-box; }
.footer-col { margin-bottom: 20px; }
.footer-col:last-child { margin-bottom: 0; }
.footer-logo { color: #FFF3E6; text-decoration: none; font-size: 24px; font-weight: bold; margin-bottom: 15px; display: block; }
.footer-description { color: #FFF3E6; margin-top: 10px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { color: #FFA53A; font-size: 16px; margin-bottom: 15px; border-bottom: 1px solid rgba(255, 165, 58, 0.3); padding-bottom: 5px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #FFF3E6; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: #FFA53A; }
.footer-bottom { text-align: center; margin-top: 30px; padding: 15px 30px 0; border-top: 1px solid #1f2128; color: #FFF3E6; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-bottom p { margin: 0; }
.footer-slot-anchor-inner { min-height: 1px; }

/* Overlay for mobile menu */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 999; }
.overlay.active { display: block; }

/* Mobile Specific Styles */
@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; padding: 0 15px; }
  .header-container { padding: 0; justify-content: space-between; width: 100%; max-width: none; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px); }
  .logo img { max-height: 56px !important; width: auto; max-width: 100%; }
  .hamburger-menu { display: flex; position: relative; z-index: 1001; }
  .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: 0 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; }
  .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 { position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100% - var(--header-offset)); background-color: #17191F; flex-direction: column; align-items: flex-start; padding: 20px; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); transform: translateX(-100%); transition: transform 0.3s ease; display: none; z-index: 1000; overflow-y: auto; box-sizing: border-box; }
  .main-nav.active { transform: translateX(0); display: flex; }
  .nav-container { flex-direction: column; align-items: flex-start; width: 100%; max-width: none; padding: 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; padding: 0 15px 30px; }
  .footer-col { margin-bottom: 30px; text-align: center; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-logo { margin-bottom: 10px; display: inline-block; }
  .footer-heading { text-align: center; }
  .footer-nav { text-align: center; }
  .footer-nav li { margin-bottom: 5px; }
  .footer-bottom { padding: 15px 15px 0; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
