:root {
    --header-color-top: #7E0D0D;
    --header-color-nav: #C61F1F;
    --header-color-nav-hover: #140C0C;
    --header-text-color: #FFF1E8;
    --header-btn-bg: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --header-btn-text: #140C0C;
    --header-btn-hover-bg: linear-gradient(180deg, #F3C54D 0%, #E53030 100%);
    --header-gold: #F3C54D;
    --header-border: #6A1E1E;
    --header-card-bg: #2A1212;
    --header-offset: 172px;
}

* {
    box-sizing: border-box;
}

body {
    background: #140C0C;
    margin: 0;
    padding-top: var(--header-offset);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #140C0C;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--header-border);
}

.header-top {
    background-color: var(--header-color-top);
    width: 100%;
    border-bottom: 1px solid var(--header-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 68px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--header-gold);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.logo:hover {
    color: var(--header-gold);
    text-decoration: none;
}

.desktop-nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-block;
    background: var(--header-btn-bg);
    color: var(--header-btn-text);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background: var(--header-btn-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: var(--header-btn-text);
}

.btn-register {
    background: var(--header-btn-bg);
}

.btn-login {
    background: var(--header-btn-bg);
}

.btn-download {
    background: var(--header-btn-bg);
}

.main-nav {
    background-color: var(--header-color-nav);
    width: 100%;
    display: flex;
    flex-direction: row;
    position: static;
    border-bottom: 1px solid var(--header-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    flex-wrap: nowrap;
    width: 100%;
}

.nav-link {
    color: var(--header-text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--header-color-nav-hover);
    color: var(--header-gold);
    text-decoration: none;
}

.mobile-nav-buttons {
    display: none;
}

.hamburger-menu {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

.site-footer {
    background-color: #140C0C;
    color: #FFF1E8;
    border-top: 2px solid #6A1E1E;
    width: 100%;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    padding: 40px 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    color: #F3C54D;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo:hover {
    color: #F3C54D;
    text-decoration: none;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #FFF1E8;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #F3C54D;
    margin-bottom: 15px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #FFF1E8;
    text-decoration: none;
    font-size: 14px;
    line-height: 2.2;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #F3C54D;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #6A1E1E;
    padding: 15px 20px;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    font-size: 14px;
    color: #FFF1E8;
}

@media (max-width: 768px) {
    :root {
        --header-offset: 146px;
    }

    .header-container {
        width: 100%;
        max-width: none;
        padding-left: 15px;
        padding-right: 15px;
        min-height: 60px;
    }

    .nav-container {
        width: 100%;
        max-width: none;
        padding-left: 0px;
        padding-right: 0px;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px 20px;
    }

    .desktop-nav-buttons {
        display: none;
    }

    .mobile-nav-buttons {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        background-color: #2A1212;
        border-bottom: 1px solid #6A1E1E;
        min-height: 48px;
        gap: 8px;
        padding: 8px 10px;
        width: 100%;
        z-index: 1000;
    }

    .mobile-nav-buttons .btn {
        width: auto;
        text-align: center;
        font-size: 12px;
        padding: 8px 10px;
    }

    .hamburger-menu {
        display: none;
        position: absolute;
        top: 18px;
        left: 15px;
        z-index: 1001;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        flex-direction: column;
        gap: 5px;
    }

    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #FFF1E8;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        max-width: 85%;
        background-color: #7E0D0D;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 1001;
        padding-top: 80px;
        display: none;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
    }

    .main-nav.open {
        display: flex;
        transform: translateX(0);
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 24px;
        color: #FFF1E8;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }

    .nav-link:hover {
        background-color: rgba(0,0,0,0.2);
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        z-index: 998;
        display: none;
    }

    .mobile-menu-overlay.show {
        display: block;
    }

    .site-header {
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px;
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-description {
        font-size: 13px;
    }

    .footer-title {
        font-size: 16px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 12px 15px;
    }

    .footer-copyright {
        font-size: 13px;
    }

    .page-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-content {
        overflow-x: hidden;
        max-width: 100%;
        padding-top: 0;
    }

    body {
        overflow-x: hidden;
        padding-top: var(--header-offset, 146px);
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
