@charset "UTF-8";
/* =============================================================
   通信人才网 v1 — 主题层 (Theme on top of Bootstrap 5)
   依赖：tokens.css（必须先加载）、bootstrap.min.css
   本文件只做「品牌化 + 业务组件」，不改 Bootstrap 内部实现。
   ============================================================= */

/* ---------------- 基础 ---------------- */
body {
  font-family: var(--th-font-sans);
  color: var(--th-text);
  background: var(--th-bg-subtle);
  font-size: var(--th-fs-base);
  line-height: var(--th-lh-normal);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--th-accent); text-decoration: none; transition: color var(--th-transition); }
a:hover { color: var(--th-accent-hover); }
img { max-width: 100%; height: auto; }

.th-container { max-width: var(--th-container-max); margin: 0 auto; padding-inline: var(--th-space-4); }

/* ---------------- 按钮 ---------------- */
.btn { border-radius: var(--th-radius-md); font-weight: 500; transition: all var(--th-transition); }

.btn-brand {
  background: var(--th-brand); border-color: var(--th-brand); color: #fff;
}
.btn-brand:hover  { background: var(--th-brand-hover);  border-color: var(--th-brand-hover);  color: #fff; box-shadow: var(--th-shadow-brand); }
.btn-brand:active { background: var(--th-brand-active); border-color: var(--th-brand-active); color: #fff; }

.btn-outline-brand { color: var(--th-brand); border-color: var(--th-brand); background: transparent; }
.btn-outline-brand:hover { background: var(--th-brand); color: #fff; }

.btn-accent { background: var(--th-accent); border-color: var(--th-accent); color: #fff; }
.btn-accent:hover { background: var(--th-accent-hover); border-color: var(--th-accent-hover); color: #fff; }

.btn-outline-accent { color: var(--th-accent); border-color: var(--th-accent); background: transparent; }
.btn-outline-accent:hover { background: var(--th-accent); color: #fff; }

/* ---------------- 顶部工具条 ---------------- */
.th-topbar {
  background: var(--th-text);
  color: rgba(255,255,255,.72);
  font-size: var(--th-fs-xs);
  line-height: 32px;
}
.th-topbar a { color: rgba(255,255,255,.72); }
.th-topbar a:hover { color: #fff; }
.th-topbar .th-sep { color: rgba(255,255,255,.28); margin: 0 var(--th-space-2); }

/* ---------------- 主导航 ---------------- */
.th-header {
  background: var(--th-surface);
  border-bottom: 1px solid var(--th-border);
  position: sticky; top: 0; z-index: 1030;
}
.th-navbar { min-height: var(--th-header-h); }
.th-logo { display: flex; align-items: center; gap: var(--th-space-2); font-size: var(--th-fs-lg); font-weight: 700; color: var(--th-text); white-space: nowrap; }
.th-logo:hover { color: var(--th-brand); }
.th-logo-mark {
  width: 34px; height: 34px; border-radius: var(--th-radius-md);
  background: linear-gradient(135deg, var(--th-brand) 0%, #FF9142 100%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--th-fs-sm); font-weight: 700; letter-spacing: -.5px;
}
.th-nav .nav-link {
  color: var(--th-text); font-size: var(--th-fs-base); font-weight: 500;
  padding: var(--th-space-2) var(--th-space-4); border-radius: var(--th-radius-md);
}
.th-nav .nav-link:hover { color: var(--th-brand); background: var(--th-brand-soft); }
.th-nav .nav-link.active { color: var(--th-brand); font-weight: 600; }
.th-nav .dropdown-menu { border: 1px solid var(--th-border); border-radius: var(--th-radius-md); box-shadow: var(--th-shadow-md); }
.th-nav .dropdown-item:active,
.th-nav .dropdown-item:hover { background: var(--th-brand-soft); color: var(--th-brand); }

/* ---------------- Hero / 搜索区 ---------------- */
.th-hero {
  background: linear-gradient(135deg, #0B4EB5 0%, var(--th-accent) 48%, #4B9BFF 100%);
  color: #fff; padding: var(--th-space-7) 0;
}
.th-hero h1 { font-size: var(--th-fs-2xl); font-weight: 700; line-height: var(--th-lh-tight); margin-bottom: var(--th-space-3); }
.th-hero .th-hero-sub { color: rgba(255,255,255,.85); font-size: var(--th-fs-base); margin-bottom: var(--th-space-5); }

.th-searchbar {
  background: #fff; border-radius: var(--th-radius-pill);
  padding: var(--th-space-1); box-shadow: var(--th-shadow-lg);
  display: flex; align-items: center; gap: var(--th-space-1);
}
.th-searchbar .form-control,
.th-searchbar .form-select {
  border: 0; box-shadow: none !important; height: 48px; border-radius: var(--th-radius-pill);
}
.th-searchbar .form-control:focus { background: var(--th-bg-subtle); }
.th-searchbar .btn { height: 48px; border-radius: var(--th-radius-pill); padding-inline: var(--th-space-6); font-weight: 600; }
.th-searchbar .th-divider { width: 1px; height: 24px; background: var(--th-border); flex: 0 0 1px; }

.th-hotwords { margin-top: var(--th-space-4); font-size: var(--th-fs-sm); color: rgba(255,255,255,.8); }
.th-hotwords a {
  color: #fff; background: rgba(255,255,255,.16); border-radius: var(--th-radius-pill);
  padding: 2px var(--th-space-3); margin-right: var(--th-space-2); display: inline-block; margin-bottom: var(--th-space-2);
}
.th-hotwords a:hover { background: var(--th-brand); }

/* ---------------- 卡片 ---------------- */
.th-card {
  background: var(--th-surface); border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg); padding: var(--th-space-5);
  transition: box-shadow var(--th-transition), border-color var(--th-transition), transform var(--th-transition);
}
.th-card:hover { border-color: var(--th-brand); box-shadow: var(--th-shadow-md); }

.th-section { padding: var(--th-space-7) 0; }
.th-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--th-space-5); }
.th-section-title {
  font-size: var(--th-fs-xl); font-weight: 700; color: var(--th-text); margin: 0;
  position: relative; padding-left: var(--th-space-3);
}
.th-section-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; border-radius: 2px; background: var(--th-brand);
}
.th-section-more { font-size: var(--th-fs-sm); color: var(--th-text-tertiary); }
.th-section-more:hover { color: var(--th-brand); }

/* ---------------- 职位卡片 ---------------- */
.th-job-card { display: block; height: 100%; }
.th-job-title {
  font-size: var(--th-fs-base); font-weight: 600; color: var(--th-text);
  margin-bottom: var(--th-space-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.th-job-card:hover .th-job-title { color: var(--th-brand); }
.th-job-salary { color: var(--th-brand); font-weight: 700; font-size: var(--th-fs-base); white-space: nowrap; }
.th-job-meta { font-size: var(--th-fs-sm); color: var(--th-text-secondary); display: flex; flex-wrap: wrap; gap: var(--th-space-2); align-items: center; }
.th-job-meta .th-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--th-border-strong); display: inline-block; }
.th-job-company { font-size: var(--th-fs-sm); color: var(--th-text-secondary); display: flex; align-items: center; gap: var(--th-space-2); margin-top: var(--th-space-3); padding-top: var(--th-space-3); border-top: 1px dashed var(--th-border); }
.th-job-company img { width: 24px; height: 24px; object-fit: contain; border-radius: var(--th-radius-sm); }

/* ---------------- 标签 ---------------- */
.th-tag {
  display: inline-block; font-size: var(--th-fs-xs); line-height: 20px;
  padding: 0 var(--th-space-2); border-radius: var(--th-radius-sm);
  background: var(--th-bg-muted); color: var(--th-text-secondary);
}
.th-tag-brand  { background: var(--th-brand-soft);  color: var(--th-brand); }
.th-tag-accent { background: var(--th-accent-soft); color: var(--th-accent); }

/* ---------------- 企业卡片 ---------------- */
.th-company-card { text-align: center; }
.th-company-logo {
  width: 72px; height: 72px; object-fit: contain; margin: 0 auto var(--th-space-3);
  border: 1px solid var(--th-border); border-radius: var(--th-radius-md); background: #fff; padding: var(--th-space-1);
  display: block;
}
.th-company-name { font-size: var(--th-fs-sm); font-weight: 600; color: var(--th-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }

/* ---------------- 资讯列表 ---------------- */
.th-news-item { display: flex; gap: var(--th-space-3); padding: var(--th-space-3) 0; border-bottom: 1px dashed var(--th-border); }
.th-news-item:last-child { border-bottom: 0; }
.th-news-item a { color: var(--th-text); flex: 1; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.th-news-item a:hover { color: var(--th-brand); }
.th-news-date { color: var(--th-text-tertiary); font-size: var(--th-fs-sm); white-space: nowrap; }

/* ---------------- 数据统计条 ---------------- */
.th-stats { background: var(--th-surface); border-radius: var(--th-radius-lg); box-shadow: var(--th-shadow-sm); padding: var(--th-space-5) var(--th-space-4); }
.th-stat-num { font-size: var(--th-fs-2xl); font-weight: 700; color: var(--th-brand); line-height: 1.1; }
.th-stat-label { font-size: var(--th-fs-sm); color: var(--th-text-secondary); margin-top: var(--th-space-1); }

/* ---------------- 页脚 ---------------- */
.th-footer { background: #1D2129; color: rgba(255,255,255,.62); padding: var(--th-space-7) 0 var(--th-space-5); font-size: var(--th-fs-sm); }
.th-footer h5 { color: #fff; font-size: var(--th-fs-base); font-weight: 600; margin-bottom: var(--th-space-4); }
.th-footer a { color: rgba(255,255,255,.62); display: block; padding: var(--th-space-1) 0; }
.th-footer a:hover { color: var(--th-brand); }
.th-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--th-space-5); padding-top: var(--th-space-4); color: rgba(255,255,255,.45); font-size: var(--th-fs-xs); }

/* ---------------- 回到顶部 ---------------- */
.th-backtop {
  position: fixed; right: 24px; bottom: 90px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--th-surface); border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-md); display: none; align-items: center; justify-content: center;
  color: var(--th-text-secondary); cursor: pointer; z-index: 1040;
}
.th-backtop:hover { color: var(--th-brand); border-color: var(--th-brand); }
.th-backtop.show { display: flex; }

/* ---------------- 响应式 ---------------- */
@media (min-width: 768px) {
  :root { --th-fs-2xl: 36px; --th-fs-3xl: 44px; }
}
@media (max-width: 767.98px) {
  .th-hero { padding: var(--th-space-6) 0; }
  .th-hero h1 { font-size: var(--th-fs-xl); }
  .th-searchbar { border-radius: var(--th-radius-lg); flex-direction: column; padding: var(--th-space-3); gap: var(--th-space-2); }
  .th-searchbar .form-control,
  .th-searchbar .form-select,
  .th-searchbar .btn { width: 100%; border-radius: var(--th-radius-md); }
  .th-searchbar .th-divider { display: none; }
  .th-section { padding: var(--th-space-5) 0; }
  .th-stat-num { font-size: var(--th-fs-xl); }
}

/* ---------------- 无障碍 ---------------- */
:focus-visible { outline: 2px solid var(--th-accent); outline-offset: 2px; }
.th-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
