/* Add a black background color to the top navigation */
.topnav {
  display: flex;
  justify-content: space-around;
  background-color: #d1882f;
  overflow: hidden;
  margin: -8px;
  padding-left: 240px;
  padding-right: 240px;
}

/* Style the links inside the navigation bar */
.topnav a {
  margin-bottom: -5px;
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 28px 32px;
  text-decoration: none;
  font-size: 17px;
}

/* Add an active class to highlight the current page */
.active {
  background-color: #333;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding: 28px 32px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Language container - needed to position the language-group content */
.language-group {
  float: left;
  overflow: hidden;
}

/* Style the language-group button to fit inside the topnav */
.language-group .language-group-btn {
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding: 28px 32px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Style the language-group content (hidden by default) */
.language-group-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.language-group-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the language-group button on hover */
.topnav a:hover, .language-group:hover .language-group-btn {
  background-color: #555;
  color: white;
}

/* Add a grey background to language-group links on hover */
.language-group-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the language-group menu when the user moves the mouse over the language-group button */
.language-group:hover .language-group-content {
  display: block;
}

.footer {
  background-color: #333;
  color: #fff;
  display: flex;
  justify-content: space-around;
  padding: 20px;
  padding-left: 300px;
  padding-right: 300px;
  margin-left: -8px;
  position: relative;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
}

.footer-left {
  flex: 1;
}

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

.footer-nav li {
  margin: 8px 0;
  position: relative; /* 为footer-submenu定位 */
}

.footer-nav li.footer-dropdown {
  position: relative; /* 父元素定位 */
  display: flex;
  align-items: center; /* 保证文字和箭头在一行 */
  gap: 5px; /* 文字和箭头间距 */
}

.footer-nav a {
  color: #d1882f;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: none; /* 默认隐藏 */
  position: absolute;
  left: 15%;   /* 菜单显示在右侧，也可以改为 bottom:0; */
  top: -150%;
  background-color: #444;
  min-width: 120px;
  z-index: 100;
  border-radius: 4px;
}

.footer-submenu li {

  margin: 0;
  padding: 5px 15px;
  white-space: nowrap; /* 防止换行 */
}

.footer-submenu a {
  color: #fff;
}

.footer-dropdown .footer-arrow {
  font-size: 0.8em;
  margin-left: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
  color: #d1882f;
  display: inline-block;
}

.footer-dropdown.open .footer-arrow {
  transform: rotate(90deg); /* 展开时箭头转向 */
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-right p {
  margin: 6px 0;
  color: #fff;
}

.footer-right i {
  color: #d1882f;
  margin-right: 6px;
}


/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {

  .topnav{
    display: block;
    padding-left: 0px;
    padding-right: 0px;
  }

  .topnav a:not(:first-child), .dropdown .dropbtn{
    display: none;
  }
  .topnav a:not(:first-child), .language-group .language-group-btn{
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }


/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */

  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
  .topnav.responsive .language-group {float: none;}
  .topnav.responsive .language-group-content {position: relative;}
  .topnav.responsive .language-group .language-group-btn {
    display: block;
    width: 100%;
    text-align: left;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-right {
    text-align: left;
    margin-top: 15px;
  }

  .footer-submenu {
    left: 0; /* 手机版时下拉在下方 */
    top: 100%;
  }
}

/* Adjust main content padding to avoid being covered by the fixed footer */
main {
  padding-bottom: 200px; /* Adjust this value based on your footer's height */
}

/* Contact Section */
.contact-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-section h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form-container h3 {
    color: #555;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
}

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

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a0a0a0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #d1882f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #b97424;
}

#form-status {
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

/* Map Container Styles */
.map-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.map-container h3 {
    color: #555;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    .contact-section {
        padding: 20px 15px;
        margin: 10px;
    }

    .contact-section h1 {
        font-size: 1.5rem;
    }
}

