/* Global Styles */
:root {
    --primary-color: #e44d26; /* A vibrant orange/red */
    --secondary-color: #f7931e; /* A brighter orange */
    --accent-color: #4CAF50; /* Green for success/highlights */
    --dark-bg: #1a1a1a;
    --light-bg: #2a2a2a;
    --text-color: #f0f0f0;
    --link-color: #f7931e;
    --border-color: #444;
    --font-family: 'Roboto', sans-serif;
    --header-height: 80px;
    --mobile-header-height: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.theme-flow {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn.theme-flow:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn.btn-login {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn.btn-login:hover {
    background-color: var(--text-color);
    color: var(--dark-bg);
}

.btn.btn-register {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn.btn-register:hover {
    background-color: #5cb85c;
    border-color: #5cb85c;
}

/* Header Styles */
.site-header {
    background-color: var(--light-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background-color: #111;
    padding: 8px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #333;
}

.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-message {
    color: #aaa;
}

.language-selector .lang-btn {
    color: #aaa;
    margin-left: 10px;
    padding: 3px 8px;
    border: 1px solid #555;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.language-selector .lang-btn.active,
.language-selector .lang-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.auth-buttons .btn {
    margin-left: 10px;
    padding: 5px 12px;
    font-size: 0.9em;
}

.header-main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-color);
}

.logo-img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}

.logo-text {
    color: var(--link-color);
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav li {
    position: relative;
    margin: 0 15px;
}

.desktop-nav .nav-link {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav .nav-link:hover::after,
.desktop-nav .nav-link.active::after {
    width: 100%;
}

.desktop-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-bg);
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-top: 3px solid var(--primary-color);
    z-index: 1001;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
}

.desktop-nav .has-submenu:hover .submenu {
    display: block;
}

.desktop-nav .submenu li a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
}

.desktop-nav .submenu li a:hover {
    background-color: var(--dark-bg);
    color: var(--primary-color);
}

.desktop-nav-buttons .btn {
    margin-left: 15px;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle .bar1, .bar2, .bar3 {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.4s;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-overlay.open {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav .nav-link {
    color: #fff;
    font-size: 1.5em;
    padding: 10px 0;
    display: block;
}

.mobile-nav .nav-link:hover {
    color: var(--primary-color);
}

.mobile-nav .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0,0,0,0.5);
    margin-top: 10px;
}

.mobile-nav .submenu.open {
    max-height: 300px; /* Adjust as needed */
}

.mobile-nav .mobile-submenu-toggle i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.mobile-nav .mobile-submenu-toggle.rotated i {
    transform: rotate(180deg);
}

.mobile-auth-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Footer Styles */
.site-footer {
    background-color: #111;
    padding: 50px 0 20px;
    border-top: 1px solid #333;
    font-size: 0.9em;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.footer-col h3 {
    color: var(--link-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    color: #aaa;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.footer-payment-methods {
    margin-bottom: 30px;
    text-align: center;
}

.footer-payment-methods h3 {
    color: var(--link-color);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.payment-icons img {
    height: 30px;
    filter: grayscale(100%) brightness(150%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-bottom p {
    color: #888;
    margin: 0;
}

.age-restriction {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
}

.age-restriction img {
    height: 25px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .desktop-nav, .desktop-nav-buttons, .auth-buttons, .language-selector {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-main-nav .container {
        height: var(--mobile-header-height);
    }

    .logo {
        font-size: 1.5em;
    }

    .logo-img {
        height: 35px;
    }

    .header-top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
    .welcome-message {
        text-align: center;
        margin-bottom: 5px;
    }

    .footer-widgets {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        max-width: 100%;
        min-width: unset;
        width: 100%;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: 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;
  }
}
