/* ============================================
   统一字体系统 - 使用 CSS 变量方便统一控制
   注意：Tailwind CSS 的标准类（如 text-xs, text-sm, font-light 等）已由 Tailwind 提供，无需重复定义
   ============================================ */

:root {
  --font-cn: 'PingFang SC', sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
}

/* 中文字体工具类 */
.font-cn {
  font-family: var(--font-cn);
}

/* 英文字体工具类 */
.font-en {
  font-family: var(--font-en);
}

/* ============================================
   Header 导航样式 - 覆盖 MDB 默认样式
   ============================================ */
/* 桌面端主导航链接 */
header #menu-headermenu li a {
  color: #333333 !important;
}

header #menu-headermenu li a:hover {
  color: #FFA461 !important;
}

/* 当前页面高亮 - 支持 active 类和 JavaScript 动态添加的类 */
header #menu-headermenu li a.active,
header #menu-headermenu li.active > a,
header #menu-headermenu li a.VPNavBarMenuLink.active {
  color: #FFA461 !important;
  font-weight: bold !important;
}

/* 移动端导航链接 */
#mobile-menu-panel a {
  color: #333333 !important;
}

#mobile-menu-panel a:hover {
  color: #FFA461 !important;
  background-color: #FFF5EF !important;
}

/* 移动端当前页面高亮 */
#mobile-menu-panel a.active,
#mobile-menu-panel li.active > a {
  color: #FFA461 !important;
  font-weight: bold !important;
}

/* 项目特定的字体组合类 - 使用变量统一管理 */
.text-subtitle {
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: 20px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .text-subtitle {
    font-size: 28px;
    line-height: 42px;
  }
}

.text-title {
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .text-title {
    font-size: 48px;
    line-height: 66.528px;
  }
}

.text-body {
  font-family: var(--font-cn);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .text-body {
    font-size: 18px;
  }
}

/* Section 描述文本 - 比正文稍小 */
.text-description {
  font-family: var(--font-cn);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .text-description {
    font-size: 16px;
    line-height: 1.5;
  }
}

.text-caption {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .text-caption {
    font-size: 14px;
  }
}

.text-label {
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .text-label {
    font-size: 20px;
    line-height: 30px;
  }
}

/* 全局字体设置 */
* {
  font-family: var(--font-cn), -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 通用页面容器 */
.page-container {
  margin: 0 auto;
  padding: 0;
  opacity: 1;
  visibility: visible;
}


/* 顶部导航 */
.sub-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f8f8f8;
  height: 55px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  justify-content: center;
  width: 100%;
  left: 0;
  right: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .sub-nav {
    overflow-x: visible;
    padding: 0;
    align-items: center;
  }
}

/* 吸顶时显示阴影 */
.sub-nav.is-stuck,
.sub-nav.nav-fixed {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-items {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-width: min-content;
}

@media (min-width: 768px) {
  .nav-items {
    gap: 30px;
    justify-content: center;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .sub-nav .nav-items {
    gap: 20px;
  }
}

.nav-item {
  padding: 5px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-item.active {
  border-bottom: 3px solid #ff8904;
}

.nav-item:hover .nav-item-text {
  color: #ff8904;
}

.nav-item-text {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: #000;
  transition: color 0.3s ease;
}

.nav-item.active .nav-item-text {
  color: #ff8904;
}

/* 通用 Section 样式 */
.section-container {
  padding: 25px 0px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .section-container {
    padding: 60px 0;
  }
}

.section-body {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .section-body {
    padding: 0;
  }
}

.section-header {
  margin-bottom: 20px;
}

.section-label {
  font-family: var(--font-cn);
  font-size: 20px;
  font-weight: 100;
  line-height: 1.5;
  color: #333333;
  margin: 0 0 10px 0;
}

@media (min-width: 768px) {
  .section-label {
    font-size: 28px;
    line-height: 42px;
  }
}

.section-title {
  font-family: var(--font-cn);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: #333333;
  margin: 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
    line-height: 66.528px;
  }
}


/* 顶部导航 */
.service-nav {
  background: #f8f8f8;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-items {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-item {
  padding: 5px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-item.active {
  border-bottom: 3px solid #ff8904;
}

.nav-item-text {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: #000;
}

.nav-item.active .nav-item-text {
  color: #ff8904;
}