:root { --header-offset: 122px; --primary-color: #F2C14E; --secondary-color: #FFD36B; --card-bg: #111111; --site-bg: #0A0A0A; --text-main: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); }

html { scroll-behavior: smooth; }
body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--site-bg); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }

/* General link styling */
a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }

/* Button general styling */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-weight: bold; text-decoration: none; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; border: none; color: #333333; background: var(--button-gradient); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color); }
.btn-primary { color: #333333; }

/* Site Header */
.site-header { background-color: var(--site-bg); width: 100%; position: fixed; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); min-height: 60px; display: flex; align-items: center; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 30px; width: 100%; }

/* Logo */
.logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; display: block; }
.logo:hover { color: var(--secondary-color); }

/* Main Navigation */
.main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 25px; list-style: none; padding: 0; margin: 0; position: static; }
.main-nav .nav-link { font-size: 16px; padding: 8px 0; position: relative; color: var(--text-main); }
.main-nav .nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { width: 100%; }
.main-nav .nav-link:hover { color: var(--primary-color); }

/* Desktop Navigation Buttons */
.desktop-nav-buttons { flex-shrink: 0; margin-left: auto; display: flex; gap: 10px; }
.mobile-nav-buttons { display: none !important; }

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

/* Mobile Menu Overlay */
.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: 998; }
.mobile-menu-overlay.active { display: block; }

/* Site Footer */
.site-footer { background-color: var(--site-bg); color: var(--text-main); padding: 40px 0 20px; border-top: 1px solid var(--border-color); font-size: 14px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 30px; }
.footer-col { margin-bottom: 20px; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.footer-description { color: #BBB; line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 18px; color: var(--primary-color); margin-bottom: 20px; text-transform: uppercase; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #BBB; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); color: #888; }
.footer-slot-anchor-inner { display: block; min-height: 1px; margin-top: 15px; }

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

  .site-header { min-height: 50px; }
  .header-container { padding: 8px 15px; width: 100%; max-width: none; justify-content: space-between; }

  .hamburger-menu { display: block; flex-shrink: 0; order: 0; }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    order: 1;
  }
  .main-nav { display: none; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 70%; height: calc(100% - var(--header-offset)); background-color: var(--card-bg); padding: 20px 0; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; overflow-y: auto; align-items: flex-start; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-link { padding: 12px 20px; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .main-nav .nav-link:last-child { border-bottom: none; }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; flex-shrink: 0; gap: 8px; order: 2; }
  .mobile-nav-buttons .btn { padding: 8px 15px; font-size: 14px; }

  .footer-container { grid-template-columns: 1fr; padding: 0 20px; }
  .footer-col { text-align: center; }
  .footer-logo { margin-bottom: 10px; }
  .footer-description { margin-bottom: 20px; }
  .footer-nav { margin-bottom: 20px; }
  .footer-nav li { display: inline-block; margin: 0 8px 10px; }
  .footer-nav a { font-size: 13px; }
  .footer-heading { margin-top: 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;
  }
}
