/**
 * FXEA 官网视觉增强 — 字体、排版、可读性
 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --fxea-accent: #00dfb8;
  --fxea-accent-dark: #00c4a2;
  --fxea-text: #2c3338;
  --fxea-text-muted: #6b7280;
  --fxea-text-light: #d1d5db;
  --fxea-bg: #f4f6f8;
  --fxea-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --fxea-leading: 1.75;
  --fxea-leading-tight: 1.45;
  --fxea-tracking: 0.02em;
}

/* 全局字体与渲染 */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body:not(.home-page) {
  font-family: var(--fxea-font) !important;
  font-size: 14px;
  line-height: var(--fxea-leading);
  letter-spacing: var(--fxea-tracking);
  color: var(--fxea-text);
}

body:not(.home-page) h1,
body:not(.home-page) h2,
body:not(.home-page) h3,
body:not(.home-page) h4,
body:not(.home-page) h5,
body:not(.home-page) h6,
body:not(.home-page) p,
body:not(.home-page) li,
body:not(.home-page) span,
body:not(.home-page) a,
body:not(.home-page) dt,
body:not(.home-page) dd {
  font-family: var(--fxea-font);
}

/* ========== 首页（非 home-page 全屏页） ========== */
body:not(.home-page) header,
body:not(.home-page) header nav li a {
  font-family: var(--fxea-font);
  font-weight: 500;
  letter-spacing: 0.04em;
}

body:not(.home-page) header nav li a {
  font-size: 16px !important;
  transition: color 0.25s ease, border-color 0.25s ease;
}

body:not(.home-page) header nav li a:hover {
  color: var(--fxea-accent) !important;
}

body:not(.home-page) header nav li.active a {
  font-weight: 600;
}

/* ========== 内页侧边栏 ========== */
aside {
  font-family: var(--fxea-font);
}

aside nav li a {
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, color 0.25s ease;
}

aside footer {
  font-size: 12px;
  color: var(--fxea-text-muted);
  line-height: 1.9;
}

/* ========== 新闻列表 ========== */
.news-list li h2 {
  font-family: var(--fxea-font) !important;
  font-weight: 600;
  font-size: 1.65em !important;
  line-height: 1.5 !important;
  height: auto !important;
  max-height: 3em;
  letter-spacing: 0.02em;
}

.news-list li h2 a {
  color: #1a1f24;
  transition: color 0.2s ease;
}

.news-list li p.desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--fxea-text-muted);
}

.news-list li .info {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.news-cate a {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ========== 文章详情 ========== */
article {
  font-family: var(--fxea-font) !important;
}

article h1 {
  font-weight: 700;
  font-size: 2em;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #1a1f24;
}

article .info {
  font-size: 13px;
  color: var(--fxea-text-muted);
}

article .content {
  font-size: 16px;
  line-height: 1.9;
  color: #374151;
}

article .content p {
  margin: 0 0 1.1em;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-ideograph;
}

article .content h1,
article .content h2,
article .content h3,
article .content h4 {
  font-weight: 600;
  color: #1f2937;
  margin: 1.5em 0 0.75em;
  line-height: 1.4;
}

article .content img {
  border-radius: 4px;
}

article .recommend-news .caption h3 {
  font-weight: 600;
}

/* ========== 产品列表 & 详情 ========== */
.cases .intro h2 {
  font-weight: 600;
}

.cases .intro h2 a {
  transition: color 0.2s ease;
}

.cases .intro p {
  font-size: 13px;
  line-height: 1.7;
}

.case-detail {
  font-family: var(--fxea-font) !important;
}

.case-detail .caption {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-detail h1 {
  font-weight: 700;
  font-size: 1.65em;
  line-height: 1.4;
  color: #1a1f24;
}

.case-detail .info {
  font-weight: 500;
}

.case-detail .intro {
  font-size: 16px;
  line-height: 1.9;
  color: #374151;
}

.case-detail .imgs {
  font-size: 15px;
  line-height: 1.85;
  color: #374151;
}

.case-detail .imgs p {
  margin-bottom: 1em;
}

/* ========== 分页 & 子导航 ========== */
.sub-nav h2 {
  font-weight: 600;
}

.pagelist a,
.pagelist span {
  font-family: var(--fxea-font);
}

/* ========== 内页背景 ========== */
body.open,
body.case-page,
body.details-page {
  background: var(--fxea-bg);
}

.inner-wrap {
  padding: 32px 100px 40px 36px;
}

/* ========== 双语切换 ========== */
.lang-switcher {
  font-size: 14px;
  font-family: var(--fxea-font, "PingFang SC", "Microsoft YaHei", sans-serif);
  user-select: none;
  white-space: nowrap;
}

.lang-switcher .lang-item {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.lang-switcher .lang-item:hover,
.lang-switcher .lang-item.active {
  color: var(--fxea-accent, #00dfb8);
}

.lang-switcher .lang-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 2px;
}

/* 首页右上角：语言 + 电话，不与导航重叠 */
body.home-page header .header-tools {
  position: absolute;
  right: 2%;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1010;
  max-width: 42%;
  pointer-events: auto;
}

body.home-page header .header-tools .lang-switcher {
  line-height: 1.4;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

body.home-page header .header-tools .lang-switcher .lang-item {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

body.home-page header .header-tools .nav-tel {
  position: static;
  right: auto;
  top: auto;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
}

@media screen and (min-width: 1051px) {
  body.home-page header nav {
    z-index: 1003;
    width: auto;
    max-width: calc(100% - 420px);
    margin: 0 auto;
    padding: 0 230px 0 180px;
    box-sizing: border-box;
    pointer-events: none;
  }

  body.home-page header nav .icon_menu,
  body.home-page header nav li,
  body.home-page header nav li a {
    pointer-events: auto;
  }

  body.home-page header nav li a {
    display: block;
    height: 100%;
    line-height: 90px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  body.home-page header.down nav li a {
    line-height: 70px;
  }
}

body:not(.home-page) .lang-switcher {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 10000;
  line-height: 1.4;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body:not(.home-page) .lang-switcher .lang-item {
  color: #555;
}

body:not(.home-page) .lang-switcher .lang-item:hover,
body:not(.home-page) .lang-switcher .lang-item.active {
  color: var(--fxea-accent-dark, #00c4a2);
}

body:not(.home-page) .lang-switcher .lang-sep {
  color: #ccc;
}

html[lang="en"] body:not(.home-page) {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

@media screen and (max-width: 1050px) {
  body.home-page header .header-tools {
    right: 12%;
    gap: 8px;
    z-index: 1010;
  }

  body.home-page header .header-tools .lang-switcher {
    font-size: 13px;
  }
}

@media screen and (max-width: 680px) {
  body.home-page header .header-tools {
    right: 14%;
  }

  body.home-page header .header-tools .lang-switcher {
    font-size: 12px;
  }

  body:not(.home-page) .lang-switcher {
    top: 12px;
    right: 12px;
    font-size: 12px;
  }
}

/* 英文首页导航：长文案单行显示 */
@media screen and (min-width: 1051px) {
  html[lang="en"] body.home-page header nav {
    max-width: calc(100% - 460px);
    padding: 0 250px 0 180px;
  }

  html[lang="en"] body.home-page header nav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    height: 100%;
  }

  html[lang="en"] body.home-page header nav li {
    float: none;
    width: auto;
    flex: 0 0 auto;
    padding: 0;
  }

  html[lang="en"] body.home-page header nav li a,
  html[lang="en"] body.home-page header.down nav li a {
    font-size: 14px;
    letter-spacing: 0;
    white-space: nowrap;
    padding: 0 6px;
  }

  html[lang="en"] body.home-page header nav li a span {
    white-space: nowrap;
  }
}

@media screen and (min-width: 1051px) and (max-width: 1440px) {
  html[lang="en"] body.home-page header nav li a,
  html[lang="en"] body.home-page header.down nav li a {
    font-size: 13px;
    padding: 0 4px;
  }
}

/* ========== 首页右侧联系栏（图文 id 75/76/77） ========== */
#panel .icons li.tg,
#panel .icons li.lark,
#panel .icons li.teams,
#panel .icons li.panel-75,
#panel .icons li.panel-76,
#panel .icons li.panel-77 {
  background-image: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#panel .icons li.tg img,
#panel .icons li.lark img,
#panel .icons li.teams img,
#panel .icons li.panel-75 img,
#panel .icons li.panel-76 img,
#panel .icons li.panel-77 img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#panel .icons li.tg:hover img,
#panel .icons li.lark:hover img,
#panel .icons li.teams:hover img,
#panel .icons li.panel-75:hover img,
#panel .icons li.panel-76:hover img,
#panel .icons li.panel-77:hover img {
  opacity: 1;
  transform: scale(1.08);
}

#panel .info li.tg p a,
#panel .info li.lark p a,
#panel .info li.teams p a,
#panel .info li.panel-75 p a,
#panel .info li.panel-76 p a,
#panel .info li.panel-77 p a {
  display: block;
  margin-top: 12px;
  width: 100px;
  height: 32px;
  line-height: 32px;
  color: #00dfb9;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #00dfb9;
  border-radius: 5px;
}

#panel .info li.tg p a:hover,
#panel .info li.lark p a:hover,
#panel .info li.teams p a:hover,
#panel .info li.panel-75 p a:hover,
#panel .info li.panel-76 p a:hover,
#panel .info li.panel-77 p a:hover {
  background: #00dfb9;
  color: #fff;
}
