:root {
  --primary: #C91F17;
  --secondary: #E53935;
  --bg: #B71C1C;
  --card-bg: #D32F2F;
  --text-main: #FFF5E1;
  --text-light: rgba(255, 245, 225, 0.8);
  --border: #F2B544;
  --glow: #FFCC66;
  --gold: #F4D34D;
  --deep-red: #7A0E0E;
  --btn-grad: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --header-offset: 164px;
  --header-top-bg: linear-gradient(135deg, #7A0E0E 0%, #C91F17 60%, #E53935 100%);
  --main-nav-bg: linear-gradient(90deg, #D32F2F 0%, #C91F17 50%, #B71C1C 100%);
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  padding-top: var(--header-offset);
}
a {
  text-decoration: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid var(--border);
}
.header-top {
  background: var(--header-top-bg);
  width: 100%;
  min-height: 68px;
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
}
.logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1;
  padding: 6px 0;
}
.logo:hover {
  color: var(--gold);
}
desktop-nav-buttons,
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--deep-red);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--btn-grad);
  border-color: var(--border);
  box-shadow: 0 2px 10px rgba(244, 211, 77, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-2px);
}
.btn-secondary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  border-color: var(--gold);
}
.btn-secondary:hover {
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.6);
  transform: translateY(-2px);
}
.btn-download {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  border-color: var(--gold);
}
.btn-download:hover {
  box-shadow: 0 0 18px rgba(255, 204, 102, 0.7);
  transform: translateY(-2px);
}
.main-nav {
  background: var(--main-nav-bg);
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid rgba(255, 245, 225, 0.3);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  gap: 0;
  width: 100%;
}
.nav-link {
  display: block;
  padding: 14px 18px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nav-link:hover {
  background: rgba(255, 245, 225, 0.15);
  border-bottom-color: var(--gold);
  color: #ffffff;
}
.nav-link.active {
  background: rgba(255, 245, 225, 0.2);
  border-bottom-color: var(--gold);
  color: #ffffff;
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.mobile-nav-buttons {
  display: none;
  min-height: 48px;
}
.site-footer {
  background: linear-gradient(135deg, #7A0E0E 0%, #B71C1C 50%, #C91F17 100%);
  color: var(--text-main);
  border-top: 2px solid var(--border);
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 30px;
}
.footer-brand .footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}
.footer-column h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-column ul.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul.footer-nav li {
  margin-bottom: 10px;
}
.footer-column ul.footer-nav a {
  color: var(--text-main);
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 2px 0;
}
.footer-column ul.footer-nav a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-main);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 245, 225, 0.2);
  text-align: center;
  padding: 16px 20px;
}
.footer-bottom p {
  font-size: 14px;
  margin: 6px 0;
  color: var(--text-main);
}
.footer-bottom .disclaimer {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }
  .header-top {
    min-height: 60px;
  }
  .header-container {
    width: 100%;
    max-width: 100%;
    padding: 8px 15px;
    justify-content: space-between;
  }
  .logo {
    font-size: 22px;
    flex: 0 0 auto;
    order: 2;
    margin: 0;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #7A0E0E 0%, #C91F17 50%, #B71C1C 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    padding-top: 70px;
    z-index: 1002;
    border-right: 2px solid var(--border);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.6);
    min-height: 100vh;
    align-items: stretch;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 4px;
  }
  .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 245, 225, 0.15);
    font-size: 15px;
    border-left: 3px solid transparent;
  }
  .nav-link:hover,
  .nav-link.active {
    border-bottom: 1px solid rgba(255, 245, 225, 0.3);
    border-left-color: var(--gold);
    background: rgba(255, 245, 225, 0.1);
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #B71C1C 0%, #C91F17 50%, #7A0E0E 100%);
    border-top: 1px solid rgba(242, 181, 68, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-height: 48px;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 13px;
    text-align: center;
  }
  .mobile-nav-buttons .btn-download {
    flex: 1.2;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1003;
    gap: 5px;
    order: 1;
    background: transparent;
    border: none;
    padding: 0;
  }
  .hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FFF5E1;
    border-radius: 3px;
    transition: all 0.4s ease;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #F4D34D;
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #F4D34D;
  }
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    padding: 30px 16px 15px;
    gap: 20px;
  }
  .footer-column:first-child {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    font-size: 13px;
  }
  .footer-column ul.footer-nav a {
    font-size: 13px;
  }
  .footer-bottom p {
    font-size: 12px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .logo {
    text-align: center;
    margin: 0 auto;
  }
  .header-container {
    position: relative;
  }
  .header-container .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header-container .desktop-nav-buttons {
    display: none;
  }
}
@media (max-width: 480px) {
  .mobile-nav-buttons .btn {
    padding: 8px 2px;
    font-size: 12px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-column:first-child {
    grid-column: auto;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
