/* ============================= */
/*         全局基础样式         */
/* ============================= */
:root {
  --primary-color: #1F4E79;
  --navbar-bg: #1F4E79;
  --font-family: "Inter", "Segoe UI", Arial, sans-serif;
  --max-width: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: #fff;
  color: #222;
  line-height: 1.6;
}

/* ============================= */
/*         导航栏样式            */
/* ============================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 100px;
  font-size: 1rem;
}

/* 主菜单链接悬停放大 */
.menu > ul > li > a {
  display: inline-block;   /* 让 transform 生效 */
  transition: transform 0.2s ease;
}

.menu > ul > li > a:hover {
  transform: scale(1.1);  /* 悬停放大 10% */
}

/* 下拉内容不受影响 */
.dropdown-content a {
  transform: none !important;  /* 确保不放大 */
  transition: none;
}


.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.menu .dropdown {
  position: relative;
}

/* 父菜单 */
.menu .dropdown .dropdown-content {
  display: none;           /* 默认隐藏 */
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;  /* 保证纵向排列 */
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 5px;
  padding: 5px 0;
  z-index: 100;
  white-space: nowrap;      /* ✅ 防止文字换行 */
  width: auto;              /* ✅ 宽度根据内容自适应 */
  min-width: 100px;         /* 可设置最小宽度，防止太窄 */
  list-style: none;
  overflow: hidden;
}

/* 下拉项 */
.dropdown-content li a {
  color: #333;
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease;
  border-radius: 4px;
}

.dropdown-content li a:hover {
  background-color: #eeeeee;
  color: #1F4E79;
}

/* 桌面悬停显示下拉 */
@media (hover: hover) {
  .menu .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* 下拉箭头样式 */
.dropbtn::after {
  content: none;
  font-size: 0.7em;
  margin-left: 5px;
}

/* 移动端点击显示下拉 */
.dropdown.active .dropdown-content {
  display: block;
}

/* logo */
.logo img {
  height: 80px;
  transition: transform 0.2s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

/* 菜单 */
.menu > ul {
  display: flex;
  list-style: none;
  gap: 34px;
}
.menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}
.menu a:hover {
  transform: scale(1.1);
  color: #fff;
}

/* 语言切换 */
.lang-switch select {
  font-size: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 7px 14px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.lang-switch select:focus,
.lang-switch select:hover {
  border-color: var(--primary-color);
}

/* ============================= */
/*         Hero 首页大图         */
/* ============================= */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
  margin-bottom: 0px;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-btn {
  font-size: 1rem;
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--primary-color);
  padding: 20px 40px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease-out;
}

.cta-btn:hover {
  background: #A9A9A9;
  color: #fff;
  transform: translateX(-50%) scale(1.05);
}

/* ============================= */
/*         Section 通用样式       */
/* ============================= */
.section {
  padding: 10px 20px;
  text-align: center;
}
.section h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 50px;
  margin-top: 30px;
}
.section p {
  color: #555;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================= */
/*        Sponsors Section       */
/* ============================= */
.sponsors-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 2% 60px 2%;
  box-sizing: border-box;
}

.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 2vw;
  justify-content: center;
  justify-items: center;
}

.sponsor-logo-item {
  min-width: 150px;
  width: 100%;
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
}

.sponsor-logo-item img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 60%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sponsor-logo-item img:hover {
  filter: grayscale(0%);
  transform: translate(-50%, -50%) scale(1.1);
}

/* 区域整体布局 */
#events {
  display: flex;
  justify-content: center;
  padding: 60px 0;
  width: 100%; /* ✅ 确保占满父容器 */
  box-sizing: border-box;
  background-color:#fff;
}

.events-container {
  width: 90%; /* ✅ 限制宽度不超过页面的80% */
}

.events-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.events-container p {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}

/* 每个年份分组 */
.event-year h3 {
  text-align: center;
  font-size: 1.6rem;
  margin: 30px 0 20px;
  color: var(--primary-color, #004aad);
}

/* 单个活动卡片（长条） */
.event-card {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.event-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* 背景图 */
.event-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75);
}

/* 遮罩层（颜色可自定义） */
.event-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--overlay-color, rgba(0,0,0,0.4));
}

/* 文字内容 */
.event-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.event-content h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;   
}

.event-content p {
  font-size: 1.5rem;
  font-weight: 400;
  color: #f5f5f5;
  opacity: 0.95;
  margin: 0;
}

.event-content p1 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #f5f5f5;
  opacity: 0.95;
  margin: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .event-card {
    height: 150px;
  }
  .event-content {
    padding: 20px;
  }
  .event-content h4 {
    font-size: 1.1rem;
  }
}

#interviews {
  padding: 60px 0;
  background-color: #f2f2f2; /* 超浅水泥灰 */
}

.interviews-container {
  width: 80%;
  margin: 0 auto;
}

.interviews-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color, #004aad);
}

/* 每个月分组 */
.interview-month h3 {
  text-align: left;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}

/* 横向滚动 */
.interview-row {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.interview-row::-webkit-scrollbar {
  height: 8px;
}

.interview-row::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

/* 单条采访卡片 */
.interview-card {
  position: relative;
  flex: 0 0 200px; /* 卡片宽度，可调 */
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 背景图 */
.interview-bg {
  position: absolute;
  top:0; left:0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
}

/* 半透明遮罩和文字 */
.interview-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5px;
}

.interview-overlay p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

/* 响应式 */
@media (max-width: 768px) {
  .interview-card {
    flex: 0 0 150px;
    height: 150px;
  }
  .interview-overlay {
    height: 40px;
  }
  .interview-overlay p {
    font-size: 0.85rem;
  }
}
/* 2026 IntVeh menu */
.page-menu {
  position: sticky;
  top: 100px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95); /* 更实的白色背景 */
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1rem 0; /* ↑↑ 增加上下间距，让菜单更厚实 */
  border-bottom: 1px solid #ddd;
}

.page-menu ul {
  display: flex;
  justify-content: center;
  gap: 3.5rem; /* ↑↑ 菜单项之间间距加大 */
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-menu a {
  font-weight: 600; /* ↑↑ 加粗字体 */
  font-size: 1.05rem; /* 稍微放大字号 */
  letter-spacing: 0.5px; /* 增加字间距 */
  color: #222; /* 提高对比度 */
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 6px; /* 为 hover 下划线留空间 */
}

.page-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #0078d7; /* 你的主题色 */
  transition: width 0.3s ease;
}

.page-menu a:hover {
  color: #0078d7;
}

.page-menu a:hover::after {
  width: 100%;
}

/* 2026 IntVeh agenda */

.agenda-section {
  background: #f9f9f9;
  padding: 4rem 1rem;
}

.agenda-wrapper {
  width: 80%;
  margin: 0 auto;
}

.agenda-block {
  margin-bottom: 3rem;
}

.agenda-day {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #222;
  border-left: 4px solid #0078d7;
  padding-left: 0.8rem;
}

/* 单条活动项，三列比例分配 */
.agenda-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

/* 左侧时间占比 20% */
.agenda-time {
  flex: 0 0 20%;
  font-weight: 600;
  color: #0078d7;
}

/* 中间内容占比 60% */
.agenda-content {
  flex: 0 0 60%;
  font-size: 1rem;
  color: #333;
}

/* 右侧 Logo 占比 20%，保持比例且自适应 */
.agenda-logo {
  flex: 0 0 20%;
  display: flex;
  justify-content: flex-end;
}

.agenda-logo img {
  max-width: 160px;
  max-height: 60px;
  object-fit: contain;
}

.agenda-item:hover {
  background-color: #e6e6e6; /* 柔和的蓝色背景，可根据品牌色调整 */
  transition: background-color 0.2s ease-in-out; /* 平滑过渡效果 */
  cursor: pointer; /* 鼠标悬浮时显示手型 */
}

/* 响应式：屏幕小于 600px 时堆叠 */
@media (max-width: 600px) {
  .agenda-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .agenda-time, .agenda-content, .agenda-logo {
    flex: 1 1 100%;
  }
  .agenda-logo {
    justify-content: flex-start;
    margin-top: 0.3rem;
  }
}

.speakers-section {
  padding: 5rem 1rem;
  background: #fff;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  color: #222;
}

.speakers-wrapper {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  justify-items: center;
}


/* 单个演讲嘉宾卡片 */
.speaker-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 100%;
  text-align: center;
}

.speaker-card:hover {
  transform: scale(1.1); /* 鼠标悬停放大 */
}

/* 头像图片裁剪为圆形 */
.speaker-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.speaker-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 自动裁剪 */
  display: block;
  max-width: none;
}

/* 演讲嘉宾信息 */
.speaker-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.speaker-info p {
  font-size: 0.9rem;
  margin: 0;
  color: #555;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .speaker-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .speaker-img {
    width: 100px;
    height: 100px;
  }
}

/* === Gallery Section === */
.gallery-section {
  background-color: #f9f9f9;
  padding: 3rem 1rem;
  text-align: center;
}

.gallery-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 2rem;
}

/* Masonry 样式 */
.masonry {
  position: relative;
  width: 95%;
  margin: 0 auto;
}

.masonry-item {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Lightbox 全屏查看 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: fadeIn 0.3s ease;
}

/* 左右箭头 */
.lightbox .arrow {
  color: white;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
  padding: 0 1rem;
  transition: color 0.2s;
}

.lightbox .arrow:hover {
  color: #0078d7;
}

/* 箭头位置 */
.lightbox .arrow-left {
  position: absolute;
  left: 20px;
}

.lightbox .arrow-right {
  position: absolute;
  right: 20px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .masonry { width: 95%; }
}
@media (max-width: 900px) {
  .masonry { width: 95%; }
}
@media (max-width: 600px) {
  .masonry { width: 95%; }
}
@media (max-width: 400px) {
  .masonry { width: 95%; }
}

/* ===== Team Section ===== */
.team-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: left;
  padding-left: 5%;
  padding-top: 2rem;
} 
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 90%;
  margin: 0 auto;
}

.team-grid h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 0.2rem 0;
  color: #222;
  padding-left: 10px;
}
.team-grid p {
  font-size: 1rem;
  margin: 0;
  color: #555;
  padding-left: 10px;
}
.team-grid a {
  font-size: 1rem;
  color: #1F4E79;
  text-decoration: underline;
  padding-left: 10px;
}
.team-member {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: auto;    /* ✅ 固定一个初始高度 */
  object-fit: fill; /* ✅ 随容器拉伸 */
  display: block;
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.05);
}

/* ---------- history-section 时间线 CSS ---------- */
.history-section {
  padding: 60px 0;
  max-width: 90%;
  margin: 0 auto;
}
.history-title {
  font-size: 2.5rem;
  color: var(--primary-color, #004aad);
  text-align: left;
  margin-bottom: 40px;
}
.history-container {
  display: flex;
  flex-direction: column;  /* 纵向排列每个时间线模块 */
  gap: 50px;               /* 时间线模块间距 */
}

/* 单行时间线布局：左文右图 */
.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* 左侧文字区域 */
.timeline-left {
  flex: 2;                     /* 占比大一点 */
  text-align: left;
  line-height: 1.8;
}

/* 年份样式 */
.timeline-year {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

/* 事件内容 */
.timeline-content {
  font-size: 16px;
  color: #444;
}

/* 右侧图片区域 */
.timeline-right {
  flex: 1;                     /* 占比小一点 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-right img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* 鼠标悬停效果 */
.timeline-right img:hover {
  transform: scale(1.05);
}

.image-caption {
  margin-top: 8px;
  font-size: 14px;
  color: #888;
  text-align: center;
}

/* ---------- 响应式：小屏幕自动上下排列 ---------- */
@media (max-width: 768px) {
  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-left, 
  .timeline-right {
    width: 100%;
  }

  .timeline-right {
    margin-top: 15px;
    align-items: flex-start;
  }

  .image-caption {
    text-align: left;
  }
}


/* ============================= */
/*            Footer             */
/* ============================= */
footer {
  background: #1F4E79;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #fff;
}

footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer .footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #A9A9A9;
}


/* ============================= */
/*          响应式调整           */
/* ============================= */
@media (max-width: 1024px) {
  .menu ul {
    gap: 20px;
  }
  .hero-img-wrapper .cta-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 80px;
  }
  .menu ul {
    gap: 12px;
  }
  .hero-img-wrapper .cta-btn {
    bottom: 5%;
    padding: 8px 18px;
    font-size: 0.85rem;
  }
  .sponsor-logos {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-img-wrapper .cta-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}


/* ============================= */
/*         Impressum Page        */
/* ============================= */

.legal-section,
main.section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  padding: 60px 20px;
  line-height: 1.8;
}

/* 主标题居中 */
.legal-section h1,
main.section h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 30px;
}

/* 其他标题保持左对齐 */
.legal-section h2,
main.section h2 {
  text-align: left;
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 10px;
}

.legal-section h3,
main.section h3 {
  text-align: left;
  color: #333;
  font-size: 1.1rem;
  margin-top: 25px;
  margin-bottom: 8px;
}

/* 正文段落 */
.legal-section p,
main.section p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: left;
}

/* 链接样式 */
.legal-section a,
main.section a {
  color: var(--primary-color);
  text-decoration: underline;
}

.legal-section a:hover,
main.section a:hover {
  color: #0a6cc2;
}

/* ===== Legal pages: align headings and paragraphs ===== */

/* 法律页面：容器左对齐 */
main.section,
.legal-section {
  text-align: left !important;
  max-width: 1000px;
  margin: 0 auto;
}

/* h1 仍居中 */
main.section h1,
.legal-section h1 {
  text-align: center !important;
}

/* 关键：取消全局 .section p 的 700px 居中限制 */
main.section p,
.legal-section p,
main.section ul,
.legal-section ul,
main.section ol,
.legal-section ol {
  max-width: none !important;   /* ✅ 取消 700px */
  margin: 0 !important;         /* ✅ 取消左右 auto 居中 */
  text-align: left !important;  /* ✅ 左对齐 */
}

/* 小标题左对齐（已做，但再稳一次） */
main.section h2, main.section h3,
.legal-section h2, .legal-section h3 {
  text-align: left !important;
}

/* ============================= */
/*      Mobile Navigation Fix     */
/* ============================= */

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* 隐藏原有菜单，默认不显示 */
  .menu > ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--navbar-bg);
    text-align: center;
    padding: 10px 0;
  }

  /* 菜单展开时显示 */
  .menu.active > ul {
    display: flex;
  }

  /* 菜单项间距 */
  .menu > ul > li {
    padding: 10px 0;
  }

  /* 下拉菜单在移动端直接展开 */
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
  }
  .dropdown-content li a {
    color: #fff;
    padding: 6px 0;
  }

  /* 语言选择器单独一行 */
  .lang-switch {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  /* 汉堡按钮样式 */
  .menu-toggle {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 10px; }
  .menu-toggle span:nth-child(3) { top: 20px; }

  /* 点击后变成叉号 */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }
}

/* ============================= */
/*      Fixed Mobile Navigation   */
/* ============================= */

/* ============================= */
/*        Mobile Navigation       */
/* ============================= */
@media (max-width: 768px) {
  /* 顶部导航容器允许换行 */
  .nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  /* LOGO */
  .logo {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }

  .logo img {
    height: 60px;
    max-height: 60px;
    object-fit: contain;
  }

  /* 菜单按钮 */
  .menu-toggle {
    display: block;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
  }

  .menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 10px; }
  .menu-toggle span:nth-child(3) { top: 20px; }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }

  /* 菜单样式 */
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navbar-bg);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
  }

  .menu.active {
    display: flex;
  }

  .menu > ul {
    flex-direction: column;
    width: 100%;
    list-style: none;
    text-align: center;
  }

  .menu > ul > li {
    padding: 12px 0;
  }

  .menu > ul > li a {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
  }

  /* 下拉菜单修正 */
  .dropdown-content {
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .dropdown-content li {
    list-style: none;
    width: 100%;
  }

  .dropdown-content li a {
    color: #ddd !important;
    display: block;
    padding: 8px 0 8px 20px;
    text-decoration: none;
    text-align: left;
    font-size: 1rem;
  }

  .dropdown-content li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }

  /* 语言切换按钮独立一行 */
  .lang-switch {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    order: 3;
  }

  /* 导航栏整体高度与对齐 */
  .navbar {
    height: auto; /* ✅ 自动适应高度 */
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

