/*
  Note: For the icons (e.g., fas fa-phone-alt, fab fa-facebook-f) and custom fonts (Playfair Display, Roboto),
  ensure the following CDN links are included in your main HTML document's <head> section:

  <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0V4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
*/

/* General Body Styles */
body {
  font-family: 'Roboto', sans-serif; /* A professional, clean font */
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: #c09f4b; /* Warm gold */
  transition: color 0.3s ease;
}

a:hover {
  color: #e6b85c;
}

/* 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: none;
}

.btn-login {
  background-color: #8b0000; /* Dark red */
  color: #fff;
}

.btn-login:hover {
  background-color: #a00000;
}

.btn-register {
  background-color: #c09f4b; /* Warm gold */
  color: #fff;
  margin-left: 10px;
}

.btn-register:hover {
  background-color: #e6b85c;
}

/* Header Styles */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top-bar {
  background-color: #333;
  color: #eee;
  padding: 8px 0;
  font-size: 0.9em;
}

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

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

.contact-info i {
  margin-right: 5px;
  color: #c09f4b;
}

.language-selector select {
  background-color: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

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

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

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

.navbar-brand .logo-link {
  display: flex;
  align-items: center;
  color: #333;
  font-size: 1.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-brand .brand-logo {
  height: 50px; /* Adjust as needed */
  margin-right: 10px;
}

.navbar-brand .brand-name {
  color: #8b0000; /* Red accent */
  font-family: 'Playfair Display', serif; /* More luxurious font */
  font-size: 1.5em;
  font-weight: bold;
}

.main-navigation {
  flex-grow: 1;
  margin-left: 30px;
}

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

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

.nav-link {
  display: block;
  padding: 10px 0;
  color: #333;
  font-weight: 600;
  font-size: 1.05em;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #c09f4b; /* Warm gold */
}

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

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

.dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  color: #555;
  font-size: 0.95em;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f8f8f8;
  color: #c09f4b;
}

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

.btn-menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.8em;
  color: #333;
  cursor: pointer;
  margin-left: 20px;
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1001;
  display: none; /* Hidden by default */
  justify-content: flex-end;
  overflow: hidden;
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu {
  background-color: #fff;
  width: 300px;
  max-width: 80%;
  height: 100%;
  padding: 20px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 2.5em;
  color: #333;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.mobile-nav-item {
  border-bottom: 1px solid #eee;
}

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

.mobile-nav-link {
  display: block;
  padding: 15px 0;
  color: #333;
  font-weight: 600;
  font-size: 1.1em;
}

.mobile-nav-link:hover {
  color: #c09f4b;
}

.mobile-dropdown-menu {
  list-style: none;
  padding-left: 20px;
  background-color: #f9f9f9;
  display: none;
}

.mobile-nav-item.dropdown .mobile-nav-link.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-item.dropdown .mobile-nav-link.dropdown-toggle i {
  transition: transform 0.3s ease;
}

.mobile-nav-item.dropdown.active .mobile-nav-link.dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu li a {
  display: block;
  padding: 10px 0;
  color: #555;
  font-size: 1em;
}

.mobile-dropdown-menu li a:hover {
  color: #c09f4b;
}

.mobile-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-login-mobile, .btn-register-mobile {
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
}

/* Marquee Section */
.marquee-section {
  background-color: #fefce8; /* Light gold background */
  padding: 10px 0;
  border-bottom: 1px solid #fce8a2;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  box-shadow: inset 0 -1px 3px rgba(0,0,0,0.05);
}

.marquee-container {
  display: flex;
  align-items: center;
  max-width: 100%; /* Ensure it takes full width */
  margin: 0 auto;
  padding: 0 15px;
}

.marquee-icon {
  font-size: 1.5em;
  margin-right: 15px;
  color: #8b0000; /* Dark red */
  flex-shrink: 0;
}

.marquee-wrapper {
  flex-grow: 1;
  overflow: hidden; /* Hide overflow for animation */
}

.marquee-content {
  display: inline-block; /* Make it flow horizontally */
  padding-left: 100%; /* Start off-screen */
  animation: marquee 30s linear infinite; /* Adjust duration as needed */
}

.marquee-content a {
  color: #333;
  margin-right: 40px; /* Space between messages */
  font-weight: 500;
  font-size: 0.95em;
  white-space: nowrap;
  display: inline-block; /* Ensure links stay inline */
}

.marquee-content a:hover {
  color: #8b0000;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); } /* Move content left */
}

/* Footer Styles */
.main-footer {
  background-color: #222;
  color: #eee;
  padding-top: 50px;
  font-size: 0.9em;
}

.footer-top {
  border-bottom: 1px solid #333;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-col h3 {
  color: #c09f4b; /* Warm gold */
  margin-bottom: 20px;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

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

.footer-col ul li a:hover {
  color: #c09f4b;
}

.social-links a {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  margin-top: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  background-color: #c09f4b;
  color: #222;
}

.contact-info i {
  margin-right: 10px;
  color: #c09f4b;
}

.support-badge {
  margin-top: 15px;
  max-width: 100px;
  height: auto;
}

.payment-icons img,
.licensing-logos img {
  max-height: 35px;
  margin-right: 10px;
  margin-bottom: 10px;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  transition: filter 0.3s ease;
}

.payment-icons img:hover,
.licensing-logos img:hover {
  filter: grayscale(0%) brightness(100%);
}

.footer-bottom {
  background-color: #1a1a1a;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #333;
}

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

.age-restriction img {
  max-height: 30px;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .main-navigation {
    display: none; /* Hide main nav on smaller screens */
  }
  .header-actions {
    margin-left: auto; /* Push actions to the right */
  }
  .btn-menu-toggle {
    display: block; /* Show menu toggle button */
  }
  .header-actions .btn-login,
  .header-actions .btn-register {
    display: none; /* Hide desktop login/register buttons */
  }
  .navbar-brand .brand-name {
    font-size: 1.3em;
  }
  .navbar-brand .brand-logo {
    height: 40px;
  }
  .marquee-content {
    animation-duration: 45s; /* Slower marquee for smaller screens */
  }
}

@media (max-width: 768px) {
  .header-top-bar {
    display: none; /* Hide top bar on very small screens */
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h3 {
    margin-top: 30px;
  }
  .social-links {
    margin-bottom: 20px;
  }
  .social-links a {
    margin: 0 5px;
  }
  .payment-icons, .licensing-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .payment-icons img, .licensing-logos img {
    margin: 5px;
  }
}

@media (max-width: 480px) {
  .navbar-brand .brand-name {
    font-size: 1.1em;
  }
  .navbar-brand .brand-logo {
    height: 35px;
  }
  .btn-menu-toggle {
    font-size: 1.5em;
  }
  .marquee-icon {
    font-size: 1.2em;
    margin-right: 10px;
  }
  .marquee-content a {
    font-size: 0.9em;
    margin-right: 25px;
  }
  .footer-top {
    padding-bottom: 20px;
  }
  .footer-col h3 {
    font-size: 1.1em;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
