/* ===== Header styles ===== */
header {
  background-color: rgba(62, 39, 35, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: rgba(62, 39, 35, 0.6);
  box-shadow: 0 0.125vw 0.625vw rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 88%;
}

.header-nav-group {
  display: flex;
  align-items: center;
  flex: 1;
}

.logo {
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 2vw;
  object-fit: cover;
}

.logo-text {
  font-size: 1.125vw;
  font-weight: 600;
  letter-spacing: 0.125vw;
  color: #fff;
}

/* ===== PC 导航 ===== */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  margin-right: 3vw;
}

.nav-links li {
  margin-left: 1.5vw;
}

.nav-links li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1vw;
  padding: 0.3125vw 0.6375vw;
  border-radius: 0.375vw;
  transition: all 0.3s ease;
  font-weight: 400;
  white-space: nowrap;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--gold);
}

.nav-links li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2vw;
  height: 0.225vw;
  background-color: var(--gold);
  border-radius: 8888vw;
  -webkit-border-radius: 8888vw;
  -moz-border-radius: 8888vw;
  -ms-border-radius: 8888vw;
  -o-border-radius: 8888vw;
}

/* ===== 咨询热线 ===== */
.hotline {
  color: #ffffff;
  font-size: 0.875vw;
  display: flex;
  align-items: center;
  font-weight: 500;
  flex-shrink: 0;
}

.hotline img {
  height: 0.875vw;
  margin-right: 0.375vw;
}

.hotline .hotline-number {
  color: var(--gold);
  font-size: 1vw;
  font-weight: 600;
}

/* ===== 移动端菜单按钮 ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 0.3125vw;
  padding: 0.5vw;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 1.5vw;
  height: 0.1875vw;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 0.125vw;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.3125vw, 0.3125vw);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.4375vw, -0.375vw);
}

/* ===== 移动端抽屉遮罩 ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: flex-start;
  align-items: stretch;
}

.mobile-nav-overlay.open {
  display: flex;
}

/* ===== 移动端抽屉 ===== */
.mobile-nav-drawer {
  width: 75vw;
  max-width: calc(100vw - 30vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0.3125vw 0 0.9375vw rgba(0, 0, 0, 0.1);
  animation: slideRight 0.3s ease-out;
  box-sizing: border-box;
}

.drawer-header {
  padding: 3vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-header .logo img {
  height: 6vw;
}

.drawer-close-btn {
  font-size: 6vw;
  color: #999;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-links {
  flex: 1;
  padding: 3vw 0;
  overflow-y: auto;
}

.mobile-nav-link {
  display: block;
  padding: 2.5vw 4vw;
  font-size: 3.5vw;
  color: #333;
  text-decoration: none;
  border-left: 0.375vw solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-color);
  background: #f5f0e8;
  border-left-color: var(--primary-color);
}

.mobile-hotline {
  display: flex;
  align-items: center;
  padding: 2.5vw 4vw;
  margin-top: 3vw;
  border-top: 1px solid #eee;
  color: var(--text-gray);
  font-size: 3.5vw;
  font-weight: 500;
}

.mobile-hotline img {
  width: 4vw;
  margin-right: 2vw;
}

/* ===== 抽屉滑入动画 ===== */
@keyframes slideRight {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* ===== Footer styles ===== */
footer {
  background-color: #f2ece7;
  padding: 3.4375vw 0 0 0;
  color: #ffffff;
}

.footer-content {
  padding-bottom: 2.5vw;
  display: grid;
  grid-template-columns: 0.45fr .5fr 1fr;
  gap: 2.8125vw;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

.footer-logo img {
  height: 4vw;
  margin-right: 0.875vw;
}

.footer-logo-text {
  font-size: 1vw;
  font-weight: 500;
  color: #2e2a29;
}

.footer-logo-text p {
  color: #2e2a29;
  font-size: 0.75vw;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 0.9375vw;
  color: #2e2a29;
  font-weight: 500;
  margin-bottom: 0.625vw;
  position: relative;
  padding-bottom: 0.5vw;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 2em;
  height: 0.25vw;
  background-color: #af640f;
}

.footer-col .quick-nav {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.3vw 1.5vw;
}

.footer-col .quick-nav li {
  margin-bottom: 0;
}

.footer-col .quick-nav li a {
  color: #2e2a29;
  text-decoration: none;
  font-size: 0.8125vw;
  transition: all 0.3s ease;
}

.footer-col .quick-nav li a:hover {
  color: var(--gold);
}

.footer-col p {
  font-size: 0.8125vw;
  color: #2e2a29;
  line-height: 1.8;
}

.footer-col .contact-info {
  font-size: 0.8125vw;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

.footer-col .contact-info strong {
  color: var(--gold);
  font-size: 1vw;
  font-weight: 600;
}

.dibucaid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dibucaid .qrcode {
  width: 7.5vw;
  height: 7.5vw;
  border-radius: 0.375vw;
  margin-bottom: 0.625vw;
}

.dibucaid p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125vw;
  text-align: center;
}

.copyright {
  text-align: center;
  padding: .55vw 0;
  border-top: 1px solid #e5dfd7;
  color: #2e2a29;
  font-size: 0.6875vw;
}

