/* ==========================================================================
   Traneasy 主题自研组件层（与构建生成的 theme.css 分离，便于单独维护）
   ========================================================================== */

/* 基础排版补充（构建样式里只有归一化，这里补正文默认值） */
.te-body {
  color: #000213;
  background: #fff;
}

/* 跳到主要内容（无障碍） */
.te-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: #084aff;
  color: #fff;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.te-skip:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   语言切换下拉
   -------------------------------------------------------------------------- */
.te-lang {
  position: absolute;
  top: 16px;
  right: 168px;
  z-index: 60;
}
.te-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.te-lang-btn:hover {
  border-color: #084aff;
  color: #084aff;
}
.te-lang-menu {
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 190px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 80;
}
.te-lang[data-open="1"] .te-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.te-lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #3a4050;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.te-lang-menu a:hover {
  background: #f1f5ff;
  color: #084aff;
}
.te-lang-menu a.is-current {
  color: #084aff;
  font-weight: 600;
  background: #f4f7ff;
}

/* --------------------------------------------------------------------------
   列表 / 搜索 / 404 / 空状态（自建页面使用）
   -------------------------------------------------------------------------- */
.te-main {
  position: relative;
  overflow: hidden;
}
.te-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 24px 64px;
}
.te-page-title {
  font-size: 26px;
  font-weight: 600;
  color: #000213;
}
.te-grid-cards {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .te-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .te-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.te-card {
  display: block;
  padding: 20px;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.te-card:hover {
  border-color: #c9d6f5;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, .35);
}
.te-card h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #000213;
}
.te-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: #8b90a0;
}
.te-empty {
  font-size: 15px;
  color: #7b8191;
}
.te-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
}
.te-pager a,
.te-pager span {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e7ebf2;
  text-decoration: none;
  color: #3a4050;
}
.te-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 24px 96px;
  text-align: center;
}
.te-error__code {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #084aff;
}
.te-error__title {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 600;
  color: #000213;
}
.te-error__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: #7b8191;
}
.te-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #084aff;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.te-btn:hover {
  background: #003bd1;
}

/* 页脚语种条（小屏也用得到，同时利于 SEO） */
.te-lang-strip {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 56px;
  padding: 20px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}
.te-lang-strip a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}
.te-lang-strip a:hover,
.te-lang-strip a.is-current {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 1023px) {
  .te-lang { display: none; }
}

/* 面包屑（SEO 语义化） */
.te-breadcrumb { max-width: 1280px; margin: 10px auto 0; padding: 0; }
.te-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #7b8191; list-style: none; margin: 0; padding: 0; }
.te-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #c4c8d1; }
.te-breadcrumb a { color: #7b8191; text-decoration: none; }
.te-breadcrumb a:hover { color: #084aff; }

/* 页脚备案 / 版权 */
.te-legal { background: #040716; color: rgba(255,255,255,.55); font-size: 12px; padding: 4px 24px 28px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.te-legal a { color: rgba(255,255,255,.7); text-decoration: none; }
.te-legal a:hover { color: #fff; }

/* 客服悬浮窗 */
.te-float-support { position: fixed; right: 20px; bottom: 88px; z-index: 90; padding: 12px 18px; border-radius: 999px;
  background: #084aff; color: #fff; font-size: 14px; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(8,74,255,.7); }
.te-float-support:hover { background: #003bd1; }

/* 下载页平台面板 */
.te-dl-panel { max-width: 1280px; margin: 20px auto 0; padding: 0; }
.te-dl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.te-dl-card { border: 1px solid #e7ebf2; border-radius: 16px; padding: 20px; background: #fff; }
.te-dl-card h3 { font-size: 16px; font-weight: 600; color: #000213; margin: 0; }
.te-dl-meta { font-size: 12px; color: #8b90a0; margin: 8px 0 14px; }
.te-dl-btn { display: inline-flex; padding: 10px 18px; border-radius: 999px; background: #084aff; color: #fff; font-size: 14px; text-decoration: none; }
.te-dl-btn:hover { background: #003bd1; }

/* 语义化辅助：视觉隐藏但对搜索引擎/读屏可见 */
.te-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
