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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}
.faq-main {
  padding-top: 100px;
}
/* 移动端顶部导航栏 */
.mobile-header {
  padding: 8px 24px;
  display: none;
  background-color: #fff;
  border-bottom: 1px solid #e9e9e9;
  align-items: center;
}

.menu-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #939393;
  font-size: 14px;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.menu-text {
  font-weight: 400;
  font-size: 14px;
  color: #939393;
}

/* 移动端遮罩层 */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
}

.mobile-overlay.active {
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  background-color: #fff;
}

/* 侧边栏样式 */
.sidebar {
  width: 296px;
  background: linear-gradient(
          180deg,
          rgba(183, 212, 255, 0.1) 0%,
          rgba(183, 212, 255, 0.1) 100%
  );
  min-height: 962px;
  padding-top: 14px;
  overflow-y: auto;
  position: relative;
  transition: width 0.3s ease;
}

/* PC端折叠按钮 */
.sidebar-toggle {
  position: absolute;
  top: 0px;
  right: 0px;
  cursor: pointer;
  display: none;
  z-index: 10;
  transition: transform 0.3s ease;
}

.sidebar-toggle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* 侧边栏收起状态 */
.sidebar.collapsed {
  width: 48px;
}

.sidebar.collapsed nav {
  display: none;
}

.sidebar.collapsed .sidebar-toggle {
  transform: rotate(180deg);
  right: 12px;
}

.sidebar nav ul {
  list-style: none;
}

/* 一级菜单样式 */
.menu-level-1 {
  position: relative;
}

.menu-level-1 > span {
  padding: 10px 0;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  color: #737373;
  line-height: 21px;
  cursor: pointer;
  position: relative;
}

.menu-level-1 > span::before {
  margin-left: 16px;
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* 产品菜单图标 */
.menu-level-1:nth-child(1) > span::before {
  background-image: url("/wp-content/uploads/assets/images/faq/Robot-one.png");
}

/* 行业解决方案菜单图标 */
.menu-level-1:nth-child(2) > span::before {
  background-image: url("/wp-content/uploads/assets/images/faq/Layers.png");
}

/* 成功案例菜单图标 */
.menu-level-1:nth-child(3) > span::before {
  background-image: url("/wp-content/uploads/assets/images/faq/Collection-files.png");
}

/* 企业成长菜单图标 */
.menu-level-1:nth-child(4) > span::before {
  background-image: url("/wp-content/uploads/assets/images/faq/Analysis.png");
}

/* 关于中企跨境菜单图标 */
.menu-level-1:nth-child(5) > span::before {
  background-image: url("/wp-content/uploads/assets/images/faq/Online-meeting.png");
}

/* .menu-level-1:hover > span {
  background-color: rgba(66, 133, 244, 0.08);
  color: #0366FF;
} */

.menu-level-1.has-submenu > span::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("/wp-content/uploads/assets/images/faq/Right.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.menu-level-1.has-submenu.open > span::after {
  transform: translateY(-50%) rotate(90deg);
}

/* 二级菜单样式 */
.sub-menu {
  overflow: hidden;
  background: linear-gradient(
          180deg,
          rgba(183, 212, 255, 0.1) 0%,
          rgba(183, 212, 255, 0.1) 100%
  );
  transition: max-height 0.3s ease, opacity 0.3s ease;
  display: none;
}

.menu-level-2 {
  position: relative;
}

.menu-level-2 > span {
  padding: 10px 18px 10px 60px;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  color: #737373;
  line-height: 21px;
  cursor: pointer;
  position: relative;
}

/* .menu-level-2:hover > span {
  background-color: rgba(66, 133, 244, 0.08);
  color: #0366FF;
} */

.menu-level-2.has-submenu > span::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("/wp-content/uploads/assets/images/faq/Right.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.menu-level-2.has-submenu.open > span::after {
  transform: translateY(-50%) rotate(90deg);
}

/* 三级菜单样式 */
.sub-menu-item {
  overflow: hidden;
  background: linear-gradient(
          180deg,
          rgba(183, 212, 255, 0.1) 0%,
          rgba(183, 212, 255, 0.1) 100%
  );
  transition: max-height 0.3s ease, opacity 0.3s ease;
  display: none;
}

.menu-level-3 {
  position: relative;
}

.menu-level-3 a {
  padding: 10px 18px 10px 75px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  color: #737373;
  line-height: 21px;
  cursor: pointer;
  position: relative;
}

/* .menu-level-3 a:hover {
  background-color: rgba(66, 133, 244, 0.08);
  color: #0366FF;
} */

.menu-level-3.active a {
  background: rgba(3, 102, 255, 0.1);
  color: #0366ff;
  font-weight: 500;
  border-left: 2px solid #0366ff;
}

/* 展开状态 */
.menu-level-1.open .sub-menu {
  display: block;
}

.menu-level-2.open .sub-menu-item {
  display: block;
}

/* 主内容区域 */
.main-content {
  padding: 0px 0px 0px 48px;
  flex: 1;
  overflow-y: auto;
  transition: margin-left 0.3s ease;
}

/* PC端显示折叠按钮 */
@media (min-width: 769px) {
  .sidebar-toggle {
    display: block !important;
  }

  .main-content.expanded {
    margin-left: 0;
  }
}

/* 面包屑导航 */
.breadcrumbs {
  padding-top: 22px;
  display: flex;
  align-items: center;
  color: #333333;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 64px;
}
.breadcrumb-separator {
  margin: 0 4px;
}
.breadcrumbs img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}
.breadcrumbs a {
  color: #333333;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #0366ff;
}

.breadcrumb-text {
  color: inherit;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #333333;
}

.breadcrumb-current {
  color: #333333;
  font-weight: 400;
}

/* 文章样式 */
article header h1 {
  font-weight: bold;
  font-size: 36px;
  color: #000000;
  margin-bottom: 40px;
}

.meta {
  display: flex;
  gap: 20px;
  font-weight: 400;
  font-size: 14px;
  color: #7c7c7c;
  margin-bottom: 43px;
}
.meta span {
  position: relative;
}

/* 内容区域 */
.content-body {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif;
  word-break: break-word; /* 防止长单词/链接撑破容器 */
  overflow-wrap: break-word; /* 兼容性更好，推荐加上 */
  white-space: normal; /* 保证文本可换行 */
  text-align: left; /* 可根据需要设置 left / justify */
  letter-spacing: 0.03em; /* 字间距，可选 */
  padding-bottom: 64px;
}

.content-body img {
  width: 100%;
}
/* 移动端样式 */
@media (max-width: 768px) {
  .faq-main {
    padding-top: 58px;
  }
  .mobile-header {
    display: flex;
  }

  .container {
    flex-direction: row;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    min-height: calc(100vh - 0px);
  }

  /* 移动端侧边栏菜单项样式调整 */
  .menu-level-1 > span {
    font-weight: 400;
    padding: 6px 0;
    font-size: 12px;
    line-height: 18px;
  }

  .menu-level-1 > span::before {
    margin-left: 12px;
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }

  .menu-level-1.has-submenu > span::after {
    right: 12px;
    width: 20px;
    height: 20px;
  }

  .menu-level-2 > span {
    font-weight: 400;
    padding: 6px 12px 6px 40px;
    font-size: 12px;
    line-height: 18px;
  }

  .menu-level-2.has-submenu > span::after {
    right: 12px;
    width: 20px;
    height: 20px;
  }

  .menu-level-3 a {
    font-weight: 400;
    padding: 6px 12px 6px 50px;
    font-size: 12px;
    line-height: 18px;
  }

  .sidebar {
    position: fixed;
    top: 0px;
    left: -70%;
    width: 70%;
    height: 100vh;
    padding: 8px 16px;
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 12px;
  }

  .sidebar.active {
    left: 0;
  }
  .sidebar nav {
    padding-top: 12px;
    background: #eff5ff;
  }

  .main-content {
    padding: 0px;
    padding-top: 0px;
    flex: 1;
    width: 100%;
    background-color: #fff;
  }

  .breadcrumbs {
    padding-top: 0px;
    margin-top: 10px;
    color: #939393;
    font-size: 13px;
    margin-bottom: 12px;
  }
  .breadcrumbs a {
    font-weight: 400;
    color: #939393;
    margin: 0 4px;
  }

  .breadcrumb-separator {
    margin: 0 4px;
    color: #ccc;
  }

  .breadcrumb-current {
    color: #333333;
  }
  .breadcrumbs img {
    display: none;
  }

  article header h1 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .meta {
    color: #2b2b2b;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .content-body {
    font-size: 15px;
    line-height: 1.7;
  }

  .content-body h2 {
    font-size: 18px;
    margin: 24px 0 12px 0;
    padding-left: 8px;
  }
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
