/* Basic Reset & Global Styles */
:root {
    --primary-color: #FFD700; /* Warm Gold */
    --secondary-color: #228B22; /* Forest Green */
    --dark-bg: #1a1a1a;
    --light-text: #f0f0f0;
    --dark-text: #333;
    --accent-color: #FF4500; /* OrangeRed for accents */
    --border-color: #333;
    --font-family: 'Arial', sans-serif;
    --max-width-container: 1200px;
    --header-height: 80px;
    --top-bar-height: 40px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --border-radius-sm: 3px;
    --border-radius-md: 8px;
    --box-shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --box-shadow-md: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

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

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

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

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

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

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-info span {
    margin-right: 20px;
    color: #bbb;
}

.contact-info i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions .btn {
    margin-left: 10px;
    padding: 8px 15px;
    font-size: 0.85em;
}

.language-selector select {
    background-color: #333;
    color: var(--light-text);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
}

.main-header-nav {
    padding: 15px 0;
}

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

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

.navbar-brand .site-logo {
    height: 50px; /* Adjust as needed */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold glow effect */
}

.navbar-toggler {
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-around;
    height: 25px;
    width: 30px;
    padding: 0;
}

.navbar-toggler .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-collapse {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
}

.navbar-nav {
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin-left: 25px;
}

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

.site-header .main-header-nav .navbar .navbar-collapse .navbar-nav .nav-item .nav-link {
    padding: 10px 15px; /* Adjusting for more specificity */
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-bg);
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--primary-color);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 0 0 5px 5px;
}

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

.dropdown-menu li a {
    padding: 10px 15px;
    display: block;
    color: var(--light-text);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #333;
    color: var(--primary-color);
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.search-bar {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-bar input {
    background-color: #333;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--light-text);
    outline: none;
    width: 200px;
    transition: width 0.3s ease;
}

.search-bar input:focus {
    width: 250px;
    border-color: var(--primary-color);
}

.search-bar button {
    background: none;
    border: none;
    color: var(--primary-color);
    margin-left: -30px;
    cursor: pointer;
    font-size: 1.1em;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 50px 0 20px;
    font-size: 0.9em;
    border-top: 5px solid var(--primary-color);
    font-family: 'Roboto', sans-serif;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.footer-widget .widget-title {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-widget p {
    color: #bbb;
    margin-bottom: 15px;
}

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

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

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

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

.footer-widget ul li i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #333;
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-media a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.site-footer .footer-widgets .footer-widget.about-us .social-media a:last-child {
    margin-right: 0;
}

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

.payment-title {
    font-size: 1em;
    color: var(--light-text);
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 20px; /* Ensure space if no border-bottom on widgets */
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.copyright {
    color: #aaa;
    margin: 0;
}

.legal-links a {
    color: #aaa;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

.age-restriction {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.85em;
}

.age-restriction .age-icon {
    height: 25px;
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background-color: var(--dark-bg);
        position: absolute;
        top: calc(var(--top-bar-height) + var(--header-height)); /* Needs to be dynamic based on top bar + main nav height */
        left: 0;
        right: 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease-out;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 99;
        padding: 20px 15px;
    }

    .navbar-collapse.open {
        transform: translateY(0);
    }

    .navbar-toggler {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #333;
    }

    .nav-link {
        padding: 12px 0;
    }

    .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        background-color: #2a2a2a;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        border-radius: 0;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        transform: none;
    }

    .search-bar {
        margin-left: 0;
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-widget .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-media {
        justify-content: center;
        display: flex;
        margin-top: 15px;
    }

    .footer-bottom .container {
        flex-direction: column;
    }

    .legal-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .legal-links a {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info, .user-actions {
        margin-bottom: 10px;
        justify-content: center;
        width: 100%;
    }

    .user-actions .btn {
        margin: 0 5px;
    }

    .language-selector {
        margin-left: 0;
    }
}

/* Font Awesome Icons */
/* This would typically be loaded from a CDN: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> */

/* Adding some more detailed typography for length */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    margin-bottom: 0.5em;
    color: var(--dark-text); /* Default for body content */
}

.site-header h1, .site-header h2, .site-header h3, .site-header h4, .site-header h5, .site-header h6 {
    color: var(--light-text);
}

.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6 {
    color: var(--primary-color);
}

p {
    margin-bottom: 1em;
    font-size: 0.95em;
}

/* Utility classes for spacing and alignment */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

/* Additional styles for visual appeal (e.g., marquee) */
.marquee-section {
    background-color: #2a2a2a;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--primary-color);
    border-top: 1px solid var(--primary-color);
}

.marquee-container {
    display: flex;
    align-items: center;
    position: relative;
    animation: marquee 30s linear infinite;
    animation-play-state: running; /* Ensure it starts playing */
}

.marquee-container:hover {
    animation-play-state: paused; /* Pause on hover */
}

.marquee-icon {
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 1.5em;
    color: var(--primary-color);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
}

.marquee-content a {
    color: #fff;
    margin-right: 50px;
    display: inline-block;
    font-weight: 500;
}

.marquee-content a:hover {
    color: var(--secondary-color);
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- Card Styles (example for general site content) --- */
.card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}
.card-header {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--dark-text);
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid #eee;
    padding-bottom: var(--spacing-sm);
}

/* --- Form Elements (example for general site content) --- */
.form-group {
    margin-bottom: var(--spacing-sm);
}
.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-size: 1em;
}
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.25);
}

/* --- Table Styles (example for general site content) --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.data-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: var(--dark-text);
}
.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.data-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* --- Animations and Transitions --- */
.fade-in {
    animation: fadeIn 0.5s var(--transition-timing) forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s var(--transition-timing) forwards;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Scrollbar styling for a custom look (optional) --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* General text styles */
.text-small { font-size: 0.85em; }
.text-medium { font-size: 1em; }
.text-large { font-size: 1.15em; }

/* Custom color classes for content */
.text-gold { color: var(--primary-color); }
.text-green { color: var(--secondary-color); }
.bg-dark { background-color: var(--dark-bg); }
.bg-light { background-color: #fff; }

/* Accessibility focus styles */
a:focus, button:focus, input:focus, select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Placeholder for additional responsive breakpoints */
@media (max-width: 480px) {
    .header-top-bar .contact-info, .header-top-bar .user-actions {
        font-size: 0.8em;
    }
    .user-actions .btn {
        padding: 6px 10px;
    }
    .site-logo {
        height: 40px;
    }
    .footer-widgets {
        gap: 20px;
    }
    .legal-links a {
        font-size: 0.8em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
