html { scroll-behavior: smooth; }
body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); background-color: #08160F; color: #F2FFF6; overflow-x: hidden; }
:root { --header-offset: 122px; --primary-color: #11A84E; --secondary-color: #22C768; --text-main: #F2FFF6; --text-secondary: #A7D9B8; --card-bg: #11271B; --border-color: #2E7A4E; --glow-color: #57E38D; --gold-color: #F2C14E; --divider-color: #1E3A2A; --deep-green: #0A4B2C; }

.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.4); background-color: var(--card-bg); }

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; background-color: var(--deep-green); width: 100%; padding: 0 20px; }
.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; }

.logo { font-size: 28px; font-weight: bold; color: var(--gold-color); text-decoration: none; display: flex; align-items: center; height: 100%; text-shadow: 0 0 5px var(--glow-color); }
.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(--card-bg); padding: 0 20px; width: 100%; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-size: 16px; font-weight: bold; text-decoration: none; color: var(--text-main); cursor: pointer; transition: all 0.3s ease; border: none; background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(var(--glow-color), 0.5); }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; background-color: var(--primary-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; gap: 25px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-container::-webkit-scrollbar { display: none; }

.nav-link { color: var(--text-main); text-decoration: none; font-size: 16px; padding: 5px 0; white-space: nowrap; transition: color 0.3s ease, transform 0.3s ease; }
.nav-link:hover { color: var(--gold-color); transform: translateY(-2px); }

.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; background: transparent; border: none; padding: 0; position: relative; z-index: 1001; }
.hamburger-menu .bar { width: 100%; height: 3px; background-color: var(--gold-color); border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.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; }

.site-footer { background-color: var(--card-bg); padding: 40px 20px 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.site-footer h3 { color: var(--text-main); font-size: 18px; margin-bottom: 15px; border-bottom: 1px solid var(--divider-color); padding-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col { display: flex; flex-direction: column; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--gold-color); text-decoration: none; margin-bottom: 15px; display: block; text-shadow: 0 0 3px var(--glow-color); }
.footer-description { margin-bottom: 20px; word-wrap: break-word; overflow-wrap: break-word; color: var(--text-secondary); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--gold-color); }
.footer-bottom { border-top: 1px solid var(--divider-color); padding-top: 20px; text-align: center; color: var(--text-secondary); max-width: 1200px; margin: 0 auto; }
.footer-bottom p { margin: 0; }
.footer-slot-anchor { width: 100%; min-height: 0; overflow: hidden; }
.footer-slot-anchor-inner { width: 100%; min-height: 0; overflow: hidden; }
.footer-dynamic-col { display: flex; flex-direction: column; }

@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%; }

  .header-top { height: 60px; padding: 0 15px; }
  .header-container { justify-content: space-between; position: relative; width: 100%; max-width: none; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px); }
  .logo img { max-height: 56px !important; }
  .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: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--card-bg);
  }
  .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;
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 280px;
    height: calc(100% - var(--header-offset));
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: flex-start; gap: 15px; padding: 0; width: 100%; max-width: none; }
  .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--divider-color); }
  .nav-link:last-child { border-bottom: none; }

  .hamburger-menu { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-footer h3 { margin-top: 20px; }
  .footer-col:first-child h3 { margin-top: 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;
  }
}
