:root {
    --header-offset: 120px;
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --page-bg: #B71C1C;
    --text-main: #FFF5E1;
    --border-color: #F2B544;
    --glow: #FFCC66;
    --gold: #F4D34D;
    --deep-red: #7A0E0E;
}
body {
    padding-top: var(--header-offset);
    margin: 0;
    background-color: var(--page-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--deep-red);
    box-shadow: 0 2px 15px rgba(0,0,0,0.6), 0 0 20px rgba(255,204,102,0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.header-top {
    background: var(--deep-red);
    width: 100%;
    border-bottom: 2px solid var(--border-color);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    min-height: 48px;
}
.logo {
    color: var(--gold);
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,230,130,0.5);
    display: inline-block;
    line-height: 1.2;
}
.logo:hover {
    color: var(--glow);
    text-shadow: 0 0 15px rgba(255,180,50,0.8);
}
.logo-text {
    background: linear-gradient(180deg, #FFE28A, #E6B800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.desktop-nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    white-space: nowrap;
    min-height: 42px;
    line-height: 22px;
    box-sizing: border-box;
}
.btn-primary {
    background: var(--btn-gradient);
    color: var(--deep-red);
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255,215,0,0.8);
}
.btn-secondary {
    background: linear-gradient(180deg, #E53935, #C91F17);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(229,57,53,0.6);
}
.main-nav {
    background: var(--card-bg);
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(242,181,68,0.2);
    min-height: 48px;
    align-items: center;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-container::-webkit-scrollbar {
    display: none;
}
.nav-link {
    color: #FFF5E1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 10px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
}
.nav-link:hover {
    background: rgba(255,245,225,0.2);
    color: var(--glow);
}
.nav-link.active {
    color: var(--gold);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 9px;
}
.nav-link.active:hover {
    background: transparent;
}
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1002;
    position: absolute;
    left: 15px;
    top: 15px;
    background: transparent;
    border: none;
}
.hamburger-menu span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.mobile-nav-buttons {
    display: none;
}
.mobile-menu-overlay {
    display: none;
}
@media (max-width: 768px) {
    :root {
        --header-offset: 108px;
    }
    .header-container {
        width: 100%;
        max-width: none;
        padding: 8px 50px;
        justify-content: center;
        position: relative;
        min-height: 44px;
        box-sizing: border-box;
    }
    .header-top {
        background: var(--deep-red);
    }
    .logo {
        font-size: 18px;
        text-align: center;
        display: block;
        line-height: 1.3;
    }
    .desktop-nav-buttons {
        display: none;
    }
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--deep-red);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 70px 20px 30px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.5);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
        border-right: 3px solid var(--border-color);
    }
    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }
    .main-nav .nav-container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 6px;
        padding: 0;
        max-width: none;
        overflow: visible;
    }
    .main-nav .nav-link {
        padding: 12px 10px;
        width: 100%;
        font-size: 15px;
        border-radius: 8px;
        text-align: left;
        flex-shrink: 1;
    }
    .main-nav .nav-link:hover {
        background: rgba(255,245,225,0.15);
    }
    .main-nav .nav-link.active {
        border-bottom: none;
        background: rgba(242,181,68,0.2);
        padding-bottom: 12px;
        color: var(--gold);
        border-left: 3px solid var(--gold);
        padding-left: 12px;
    }
    .hamburger-menu {
        display: flex;
    }
    .mobile-nav-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: linear-gradient(180deg, #7A0E0E, #6a0c0c);
        padding: 8px 12px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }
    .mobile-nav-buttons .btn {
        flex: 1;
        max-width: 170px;
        padding: 10px 10px;
        font-size: 13px;
    }
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 1000;
        transition: opacity 0.3s ease;
    }
    .mobile-menu-overlay.active {
        display: block;
    }
    body.no-scroll {
        overflow: hidden;
    }
    .page-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-content {
        overflow-x: hidden;
        max-width: 100%;
    }
    body {
        overflow-x: hidden;
    }
}
.site-footer {
    background: linear-gradient(180deg, #7A0E0E, #5a0808);
    color: #FFF5E1;
    padding: 50px 0 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 4px solid var(--border-color);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    padding: 0 30px 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-logo {
    color: var(--gold);
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-block;
    background: linear-gradient(180deg, #FFE28A, #E6B800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}
.footer-logo:hover {
    opacity: 0.85;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,245,225,0.9);
}
.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    color: var(--gold);
}
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav a {
    color: rgba(255,245,225,0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    line-height: 1.4;
    display: inline-block;
}
.footer-nav a:hover {
    color: var(--glow);
    padding-left: 5px;
}
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 16px 20px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid rgba(242,181,68,0.3);
    color: rgba(255,245,225,0.9);
}
.footer-bottom p {
    margin: 0;
}
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px 30px;
    }
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    .footer-title {
        text-align: center;
    }
    .footer-nav {
        align-items: center;
    }
    .footer-nav a {
        text-align: center;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
