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; --main-color: #FF8C1A; --accent-color: #FFA53A; --card-bg: #17191F; --deep-orange: #D96800; --text-main: #FFF3E6; --border-color: #A84F0C; --glow-color: #FFB04D; }

/* Header styles */
.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); background-color: var(--deep-orange); }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-orange); width: 100%; }
.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: 20px; padding-right: 20px; }
.logo { color: var(--text-main); font-size: 28px; font-weight: bold; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 24px; position: relative; z-index: 1002; }
.hamburger-icon, .hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; width: 100%; height: 3px; background-color: var(--text-main); position: absolute; left: 0; transition: all 0.3s ease; }
.hamburger-icon { top: 50%; transform: translateY(-50%); }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }
.hamburger-menu.active .hamburger-icon { background-color: transparent; }
.hamburger-menu.active .hamburger-icon::before { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { transform: translateY(-8px) rotate(-45deg); }

.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(--main-color); width: 100%; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 25px; text-decoration: none; color: var(--text-main); font-weight: bold; text-align: center; transition: all 0.3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--main-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; }
.nav-list a { color: var(--text-main); text-decoration: none; font-weight: bold; font-size: 16px; padding: 5px 0; position: relative; transition: color 0.3s ease; white-space: nowrap; }
.nav-list a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }
.nav-list a:hover { color: var(--accent-color); }

.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.visible { display: block; }

/* Footer styles */
.site-footer { background-color: #0D0E12; color: #FFF3E6; padding: 40px 20px 20px; border-top: 1px solid var(--border-color); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: var(--accent-color); font-size: 18px; margin-bottom: 15px; }
.footer-logo { color: var(--text-main); font-size: 24px; font-weight: bold; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { font-size: 14px; 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: #FFF3E6; text-decoration: none; font-size: 14px; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 13px; color: #BBB; }
.copyright { margin: 0; }
.footer-slot-anchor, .footer-slot-anchor-inner { /* Ensures visibility for injected content */ display: block; width: 100%; height: auto; min-height: 1px; }

/* Responsive 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; height: 60px; background-color: var(--deep-orange); }
  .header-container { padding-left: 15px; padding-right: 15px; width: 100%; max-width: none; position: relative; justify-content: flex-start; }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    max-width: calc(100% - 60px); /* Adjust based on hamburger width */
  }
  .hamburger-menu { display: block; margin-right: auto; }
  .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-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--main-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  }
  .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 {
    min-height: 48px; height: auto; /* Height auto for content */
    display: none; /* Default hidden */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%; /* Adjust as needed */
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: var(--card-bg);
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  }
  .main-nav.active {
    display: flex; /* Must set display to show */
    transform: translateX(0);
  }
  .nav-container { width: 100%; max-width: none; padding: 0 15px; }
  .nav-list { flex-direction: column; gap: 15px; text-align: left; }
  .nav-list a { font-size: 15px; display: block; padding: 8px 0; }
  .nav-list a::after { display: none; }

  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-col:nth-child(2), .footer-col:nth-child(3) { text-align: left; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
