/* ===== daohang.css - 导航栏专用样式 ===== */

/* 导航栏整体 */
.header {
  background: #b8363a;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 左侧 Logo 图片 */
.logo {
  height: 36px;
  width: auto;
  max-width: 70vw;
    margin-left: -25px;
}

/* 电脑版菜单 */
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom: 2px solid #fff;
}

/* 手机版：三道杠按钮（电脑隐藏） */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* 手机版：遮罩层 */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
}
.nav-overlay.show { display: block; }

/* 手机版：右侧抽屉菜单 */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: #b8363a;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.nav-drawer.show { transform: translateX(0); }

/* 抽屉顶部关闭按钮 */
.drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px;
}
.drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

/* 抽屉内部菜单 */
.drawer-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}
.drawer-links a {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.drawer-links a:last-child { border-bottom: none; }
.drawer-links a.active { color: #fff; font-weight: bold; }

/* 媒体查询：手机 */
@media (max-width: 599px) {
  .nav-links { display: none; }
  .menu-btn   { display: flex; }
}
