/* Basic Reset & Typography */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-bg: #1a1a1a;
    --light-text: #f8f9fa;
    --accent-color: #ffc107;
    --border-color: #333;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
.site-header {
    background-color: var(--dark-bg);
    color: var(--light-text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-top {
    background-color: #0d0d0d;
    padding: 8px 0;
    font-size: 0.9em;
    border-bottom: 1px solid var(--border-color);
}

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

.top-info span {
    margin-right: 20px;
}

.top-info i, .top-social i {
    margin-right: 5px;
    color: var(--accent-color);
}

.top-social a {
    color: var(--light-text);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-social a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.header-main {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8em;
    margin: 0;
    font-weight: bold;
}

.main-nav {
    flex-grow: 1;
    text-align: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

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

.nav-link {
    display: block;
    padding: 10px 0;
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
    text-decoration: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c2c2c;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: var(--light-text);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
}

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

.btn-register:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/hero-bg.jpg') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: var(--light-text);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--accent-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 7px;
    font-size: 1.1em;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.small-text {
    font-size: 0.85em;
    margin-top: 20px;
    opacity: 0.8;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
    border-top: 5px solid var(--primary-color);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 20px 0;
}

.footer-widget:last-child {
    margin-right: 0;
}

.footer-widget h3 {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    position: relative;
}

.footer-widget h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 5px;
}

.footer-widget p {
    margin-bottom: 10px;
}

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

.footer-widget ul li {
    margin-bottom: 8px;
}

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

.footer-widget ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links a {
    color: #cccccc;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-methods h4 {
    color: var(--light-text);
    margin-bottom: 10px;
}

.payment-icon {
    height: 30px;
    margin: 0 10px;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

.payment-icon:hover {
    filter: grayscale(0%) brightness(100%);
}

.copyright p {
    margin-bottom: 5px;
    color: #aaa;
}

.copyright a {
    color: var(--primary-color);
}

.copyright a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.8em;
    color: #888;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide main nav on smaller screens */
        width: 100%;
        order: 3; /* Push to new line */
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        background-color: #2c2c2c;
        padding: 15px 0;
    }

    .nav-list li {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid #444;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        background-color: #3a3a3a;
        padding-left: 30px;
    }

    .menu-toggle {
        display: block; /* Show toggle button */
        order: 2;
    }

    .header-main .container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header-actions {
        order: 1;
    }

    .logo {
        order: 0;
    }

    .footer-widget {
        flex-basis: 48%; /* Two columns on medium screens */
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
    }
    .top-info span {
        margin: 5px 0;
        display: block;
    }
    .top-social {
        margin-top: 10px;
    }

    .hero-content h2 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }

    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        margin-bottom: 30px;
        min-width: unset;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
