:root {
    --primary-gold: #D4AF37; /* Gold */
    --secondary-red: #8B0000; /* Deep Red */
    --text-dark: #333; /* Dark gray for general text */
    --text-light: #f8f8f8; /* Light gray for text on dark backgrounds */
    --bg-dark: #1a1a1a; /* Dark background */
    --bg-light: #ffffff; /* White background */
    --accent-gray: #e0e0e0; /* Light accent gray */
    --font-serif: 'Playfair Display', serif; /* Elegant serif font */
    --font-sans: 'Roboto', sans-serif; /* Modern sans-serif font */
}

/* Universal Box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

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

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; /* added line */
    border: 0;
}

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

.header-top-bar {
    background-color: var(--secondary-red);
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.welcome-message {
    margin: 0;
    color: var(--text-light);
    padding: 5px 0;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

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

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

.btn-signup {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    border: 1px solid var(--primary-gold);
}

.btn-signup:hover {
    background-color: #c09f2d; /* slightly darker gold */
    border-color: #c09f2d;
}

.language-selector select {
    background-color: var(--secondary-red);
    color: var(--text-light);
    border: 1px solid var(--primary-gold);
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23D4AF37" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: 12px;
    padding-right: 25px;
}

.main-navigation {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
    display: block;
    max-width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 100;
    margin-left: auto; /* Pushes toggle to the right on mobile */
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

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

.nav-menu .menu-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu .menu-item a:hover {
    color: var(--primary-gold);
}

.nav-menu .menu-item.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--bg-dark);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-top: 3px solid var(--primary-gold);
    left: 0;
    top: 100%;
}

.nav-menu .menu-item.dropdown:hover .dropdown-menu {
    display: block;
}

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

.nav-menu .menu-item.dropdown .dropdown-menu li a:hover {
    background-color: var(--secondary-red);
    color: var(--text-light);
}

.arrow-down {
    margin-left: 5px;
    border: solid var(--text-light);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.nav-menu .menu-item.dropdown:hover .arrow-down {
    transform: rotate(225deg);
}

/* Hero Section */
.hero-section {
    background: url('/assets/images/hero-bg.jpg') no-repeat center center/cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    color: var(--text-light);
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); /* Overlay for readability */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.8em;
    margin-bottom: 20px;
    color: var(--primary-gold);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--accent-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 8px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background-color: #c09f2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.hero-small-print {
    font-size: 0.85em;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.75);
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--accent-gray);
    padding: 60px 0 30px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-heading {
    color: var(--primary-gold);
    font-family: var(--font-serif);
    font-size: 1.5em;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p, .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

.footer-col a {
    color: var(--accent-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.6em;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.1);
}

.payment-methods {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-methods img {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: 25px;
    width: auto;
}

.payment-methods img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    text-align: center;
}

.copyright, .disclaimer {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

.copyright a, .disclaimer a {
    color: var(--primary-gold);
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-dark);
        border-top: 1px solid var(--primary-gold);
        padding-bottom: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .menu-item {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu .menu-item:last-child {
        border-bottom: none;
    }

    .nav-menu .menu-item a {
        padding: 15px 20px;
    }

    .nav-menu .menu-item.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: rgba(0, 0, 0, 0.3);
        padding-left: 30px;
        width: 100%;
    }

    .nav-menu .menu-item.dropdown .dropdown-menu li a {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links,
    .payment-methods {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .btn-primary {
        padding: 15px 25px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .language-selector select {
        width: 100%;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 0.9em;
    }

    .site-logo img {
        height: 40px;
    }
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;700&display=swap');
/* Font Awesome for social icons, assuming it's loaded via CDN in the main HTML */
/* Example: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> */
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
