/* ==================== 二级页面共享 Header + Navigation 样式 ==================== */

.top-nav {
  position: relative;
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 158px;
  padding-right: 158px;
  text-align: left;
  height: 42px;
  z-index: 199;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

/* ==================== 页眉行（与首页一致，由 JS 注入） ==================== */
.yemei {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  z-index: 200;
  transition: background 0.3s ease;
}

.yemei-inner {
  width: 100%;
  height: 130px;
  padding: 0 158px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.yemei-logo {
  display: flex;
  align-items: center;
}

.yemei-logo img {
  width: auto;
  height: auto;
  transform-origin: left center;
  will-change: transform, opacity;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.yemei-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  padding: 0;
}

.yemei-top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 35px;
}

.duoyuyan {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.duoyuyan:hover {
  color: #d8232a;
}

.link-sep {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.yemei-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.yemei-social a {
  display: flex;
  align-items: center;
}

.yemei-social img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.yemei-social img:hover {
  opacity: 1;
}

/* 原 shared-logo 已移到页眉行，隐藏 */
.shared-logo {
  display: none;
}

/* ==================== 白条态 logo（logo2，由 JS 注入） ==================== */
.nav-logo {
  display: none;
  opacity: 0;
  transform: scale(0.85);
  will-change: transform, opacity;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-main {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  margin: 0;
  height: 42px;
  line-height: 42px;
  width: 100%;
  padding-right: 158px;
  box-sizing: border-box;
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.nav-item > a {
  display: block;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 42px;
  padding: 0 40px;
  text-decoration: none;
  transition: background 0.3s ease;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-item:first-child > a {
  padding-left: 0;
}

/* 当前页面高亮 - 无下划线 */
.nav-item.active > a {
  background: transparent;
  color: #fff;
  border-bottom-color: transparent;
}

/* 悬停时 - 透明白色背景（与首页一致） */
.nav-item > a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-bottom-color: transparent;
}

.nav-item.active > a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-bottom-color: transparent;
}

/* 下拉菜单 */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 700px;
  background: #fff8f9;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 12px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: visible;
}

/* 右对齐下拉（后 3 个菜单项防溢出右边界，与首页一致） */
.submenu-right .submenu {
  left: auto;
  right: 0;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-inner {
  display: flex;
  padding: 0;
  min-width: 600px;
}

.submenu-links {
  flex: 1;
  min-width: 300px;
  max-width: 420px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
}

.submenu-gallery {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  padding: 25px 25px 25px 15px;
  overflow: hidden;
}

.submenu-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 8px;
}

.nav-item:hover .submenu-img {
  transform: scale(1.05);
}

.submenu-links a {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 25px;
  text-decoration: none;
  text-align: left;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  line-height: 1.4;
}

.submenu-links a:hover {
  background: linear-gradient(90deg, rgba(216, 35, 42, 0.08), transparent);
  border-left-color: #d8232a;
  color: #d8232a;
  padding-left: 30px;
}

/* ==================== 三级子菜单（向下展开） ==================== */
.submenu-item {
  position: relative;
}

.submenu-item.has-children > a {
  position: relative;
  padding-right: 34px;
}

.submenu-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 16px;
  line-height: 1;
  color: #bbb;
  transition: color 0.2s ease;
  pointer-events: none;
}

.submenu-item.has-children:hover > a .submenu-arrow {
  color: #d8232a;
}

.submenu-level3 {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1200;
}

.submenu-item.has-children:hover > .submenu-level3 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-level3 a {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.submenu-level3 a:hover {
  background: linear-gradient(90deg, rgba(216, 35, 42, 0.08), transparent);
  border-left-color: #d8232a;
  color: #d8232a;
  padding-left: 25px;
}

/* ==================== 四级子菜单（向下展开） ==================== */
.submenu-level4 {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1300;
}

.submenu-item.has-children:hover > .submenu-level4 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-level4 a {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.submenu-level4 a:hover {
  background: linear-gradient(90deg, rgba(216, 35, 42, 0.08), transparent);
  border-left-color: #d8232a;
  color: #d8232a;
  padding-left: 25px;
}

/* ==================== 桌面端隐藏汉堡按钮 ==================== */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

/* ==================== Home 菜单项（仅移动端汉堡菜单显示） ==================== */
.nav-home {
  display: none;
}

@media (max-width: 1024px) {
  .nav-home {
    display: block;
  }
  .nav-home > a::after {
    content: none !important;
  }
}

/* ==================== 移动端响应式样式 ==================== */
@media (max-width: 1024px) {
  .header-wrapper {
    position: relative;
    z-index: 998;
  }

  .top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 50px 0 15px;
    background: transparent;
    z-index: 1001;
  }

  .shared-logo {
    display: none;
  }

  /* 汉堡菜单按钮 */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: fixed !important;
    top: 18px !important;
    right: 15px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99999 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* 移动端菜单面板 - 抽屉式滑入 */
  .nav-main {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: #fff;
    padding: 0;
    margin: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    gap: 0;
    display: flex;
    width: 100%;
    height: auto;
  }

  .top-nav.nav-open .nav-main {
    display: flex;
    transform: translateX(0);
  }

  .nav-item {
    height: auto;
    border-bottom: 1px solid #eee;
  }

  .nav-item.has-submenu::before {
    display: none;
  }

  .nav-item > a {
    color: #333 !important;
    padding: 15px 20px;
    font-size: 15px;
    justify-content: space-between;
  }

  .nav-item > a::after {
    content: '+';
    font-size: 18px;
    font-weight: bold;
  }

  .nav-item.expanded > a::after {
    content: '-';
  }

  /* 移动端下拉菜单 - 在下方展开 */
  .submenu {
    position: static;
    width: 100%;
    min-width: auto;
    background: #f8f8f8;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    left: auto;
    right: auto;
  }

  .nav-item.expanded .submenu {
    display: block;
    max-height: 900px;
  }

  .submenu-inner {
    flex-direction: column;
    min-width: auto;
  }

  .submenu-links {
    min-width: auto;
    max-width: 100%;
    padding: 10px 20px 20px;
  }

  .submenu-gallery {
    display: none;
  }

  .submenu-links a {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    color: #333;
  }

  .submenu-links a:hover {
    color: #d8232a;
    border-left: none;
    padding-left: 0;
  }

  /* 移动端三级菜单：静态缩进显示 */
  .submenu-arrow {
    display: none;
  }

  .submenu-item.has-children > a {
    padding-right: 0;
  }

  .submenu-level3 {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    padding: 0 0 0 15px;
  }

  .submenu-level3 a {
    color: #333;
    border-left: none;
    border-bottom: 1px solid #eee;
    padding: 10px 0 10px 15px;
    white-space: normal;
  }

  .submenu-level3 a:hover {
    color: #d8232a;
    background: transparent;
    border-left: none;
    padding-left: 15px;
  }

  /* 移动端四级菜单：静态缩进显示 */
  .submenu-level4 {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    padding: 0 0 0 15px;
  }

  .submenu-level4 a {
    color: #333;
    border-left: none;
    border-bottom: 1px solid #eee;
    padding: 10px 0 10px 15px;
    white-space: normal;
  }

  .submenu-level4 a:hover {
    color: #d8232a;
    background: transparent;
    border-left: none;
    padding-left: 15px;
  }

  /* yemei 移动端适配 */
  .yemei {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent;
    pointer-events: none;
  }

  .yemei-inner {
    height: 60px;
    padding: 5px 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: transparent;
  }

  .yemei-logo img {
    height: 45px;
    pointer-events: auto;
  }

  .yemei-right {
    display: none;
  }

  /* 隐藏 hover 效果 */
  .header-wrapper:hover .yemei,
  .header-wrapper:hover .top-nav,
  .header-wrapper:hover .duoyuyan,
  .header-wrapper:hover .link-sep,
  .header-wrapper:hover .yemei-social img {
    background: transparent;
    color: inherit;
    opacity: 1;
  }
}

/* ==================== 页眉导航基础容器 ==================== */
.header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* ==================== 页眉导航 hover 效果（仅桌面端 >1024px，与首页一致） ==================== */
@media (min-width: 1025px) {
  .header-wrapper:hover .yemei {
    background: #fff;
  }

  .header-wrapper:hover .duoyuyan {
    color: #666;
  }

  .header-wrapper:hover .link-sep {
    color: #ccc;
  }

  .header-wrapper:hover .yemei-social img {
    opacity: 0.8;
  }

  .header-wrapper:hover .top-nav {
    background: #d8232a;
  }

  .header-wrapper.scrolled:hover .top-nav {
    background: #fff;
  }
}

/* ==================== 滚动后白条态（scrolled，仅桌面端 >1024px） ==================== */
@media (min-width: 1025px) {
  .header-wrapper.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .header-wrapper.scrolled .yemei {
    overflow: hidden;
    pointer-events: none;
  }

  .header-wrapper.scrolled .yemei-inner {
    height: 0;
    opacity: 0;
    overflow: hidden;
  }

  .header-wrapper.scrolled .yemei-logo img {
    opacity: 0;
    transform: scale(0.3);
  }

  .header-wrapper.scrolled .top-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    height: 64px;
    padding-left: 158px;
    padding-right: 158px;
  }

  .header-wrapper.scrolled .nav-logo {
    display: flex;
    align-items: center;
    opacity: 1;
    transform: scale(1);
  }

  .header-wrapper.scrolled .nav-main {
    flex: 1;
    height: 64px;
    line-height: 64px;
    justify-content: flex-start;
    padding-left: 56px;
    padding-right: 0;
  }

  .header-wrapper.scrolled .nav-item > a {
    color: #888;
    line-height: 64px;
  }

  .header-wrapper.scrolled .nav-item > a:hover {
    color: #333;
    background: transparent;
  }

  .header-wrapper.scrolled .nav-item.active > a {
    color: #888;
  }
}

/* ==================== 页脚（contact-v2，与首页一致） ==================== */
.contact-v2-section {
  background: linear-gradient(90deg, #1d50a3 0%, #0f62a6 25%, #01779f 50%, #018995 75%, #00a271 100%);
  color: #fff;
  padding: 50px 0 25px;
  margin-top: 45px;
  font-family: 'Inter', Arial, sans-serif;
}

.contact-v2-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 158px;
  box-sizing: border-box;
}

.contact-v2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 35px;
  min-height: 100px;
}

.contact-v2-info {
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 300px;
}

.contact-v2-section-title {
  font-size: 50px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
}

.contact-v2-section-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-v2-section-title a:hover {
  color: #00c29b;
}

.contact-v2-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-v2-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-v2-icon {
  width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.contact-v2-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
}

.contact-v2-text {
  font-size: 13px;
  color: #fff;
  line-height: 1.5;
  text-align: left;
}

.contact-v2-text a {
  color: #fff;
  text-decoration: none;
}

.contact-v2-text a:hover {
  text-decoration: underline;
}

.contact-v2-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.contact-v2-social-icons {
  display: flex;
  gap: 12px;
}

.contact-v2-social-link {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.contact-v2-social-link img {
  width: 26px;
  height: 26px;
  display: block;
}

.contact-v2-social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: translateY(-2px);
}

.contact-v2-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-v2-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-v2-links span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-v2-links a:hover {
  color: #fff;
}

.contact-v2-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* 页脚快捷链接（3 列） */
.contact-v2-quicklinks {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
  flex: 1;
}

.quicklink-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  max-width: 320px;
}

.quicklink-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
}

.quicklink-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: left;
}

.quicklink-col a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-v2-quicklinks {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .contact-v2-container {
    padding: 0 30px;
  }

  .contact-v2-section-title {
    font-size: 32px;
  }

  .contact-v2-top {
    flex-direction: column;
    gap: 20px;
  }

  .contact-v2-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
