:root { --primary: #FF8C1A; --secondary: #FFA53A; --btn-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); --card-bg: #17191F; --bg-main: #0D0E12; --text-main: #FFF3E6; --border-color: #A84F0C; --glow: #FFB04D; --deep-orange: #D96800; --header-offset: 122px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: var(--header-offset); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background-color: var(--bg-main); color: var(--text-main); }
body.no-scroll { overflow: hidden; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(0,0,0,0.55); }

/* Header Top */
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #17191F; border-bottom: 1px solid var(--border-color); }
.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: 24px; padding-right: 24px; }
.logo { display: inline-block; font-size: 24px; font-weight: 800; letter-spacing: 0.5px; color: var(--primary); text-decoration: none; white-space: nowrap; transition: color 0.25s ease; }
.logo:hover { color: var(--glow); }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-login { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: 0 0 0 rgba(255,140,26,0); }
.btn-login:hover { box-shadow: 0 4px 14px rgba(255,140,26,0.35); }
.btn-register { background: var(--btn-gradient); color: #1a0d00; border: 1px solid #A84F0C; box-shadow: 0 4px 14px rgba(255,140,26,0.45); }
.btn-register:hover { box-shadow: 0 6px 20px rgba(255,176,77,0.6); }

/* Mobile nav buttons (hidden desktop) */
.mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; }

/* Main Nav */
.main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #0D0E12; border-bottom: 1px solid var(--border-color); }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-list { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-block; padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--text-main); text-decoration: none; border-radius: 6px; position: relative; transition: color 0.2s ease, background-color 0.2s ease; white-space: nowrap; }
.nav-link:hover { color: var(--primary); background-color: rgba(255,140,26,0.1); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--btn-gradient); border-radius: 1px; }
.hamburger-menu { display: none; }
.menu-overlay { display: none; }

/* ===== FOOTER ===== */
.site-footer { background-color: #0D0E12; color: var(--text-main); border-top: 1px solid var(--border-color); margin-top: 60px; }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-slot-anchor-outer, .footer-slot-anchor-inner, .footer-mid-cell { display: block; }
.footer-top { padding: 48px 0 32px; border-bottom: 1px solid rgba(168,79,12,0.35); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; margin-bottom: 14px; }
.footer-logo:hover { color: var(--glow); }
.footer-description { font-size: 14px; line-height: 1.65; color: #c9b9a8; margin: 0 0 16px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(168,79,12,0.5); }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: 14px; color: #c9b9a8; text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: var(--primary); padding-left: 4px; }
.footer-mid { padding: 28px 0; border-bottom: 1px solid rgba(168,79,12,0.35); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0; }
.footer-mid-cell { min-height: 0; }
.footer-bottom-wrap { padding: 12px 0 0; }
.footer-bottom { padding: 16px 0 28px; }
.footer-copyright { margin: 0; font-size: 13px; color: #a89786; text-align: center; }

/* ===== RESPONSIVE (mobile <=768px) ===== */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 20px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 4px 15px;
    background-color: #17191F;
    border-bottom: 1px solid var(--border-color);
    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 {
    min-height: 48px !important;
    height: 48px !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: none;
    width: 100%;
    max-width: 320px;
    height: 100vh !important;
    max-height: 100vh;
    overflow-y: auto;
    background-color: #17191F;
    border-right: 1px solid var(--border-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.6);
  }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; padding: 70px 16px 24px; flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list li { width: 100%; }
  .nav-link { display: block; padding: 12px 14px; font-size: 15px; border-radius: 8px; }
  .nav-link.active::after { display: none; }
  .hamburger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 32px;
    padding: 5px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    z-index: 1002;
    box-sizing: border-box;
  }
  .hamburger-menu span { display: block; width: 100%; height: 2px; background-color: var(--primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.65); z-index: 999; }
  .menu-overlay.active { display: block; }
  .footer-top { padding: 32px 0 24px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { padding: 0 15px; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }
}

@media (max-width: 420px) {
  .footer-mid-grid { grid-template-columns: 1fr; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
