/* ============================================================
   Moka HR百科 — 视觉升级
   ============================================================ */

/* ── 1. 字体与基础排版 ─────────────────────────────────────── */

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

p {
  line-height: 1.8;
  color: #334155;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

/* ── 2. 导航栏 ─────────────────────────────────────────────── */

.navbar {
  background-color: #010120 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0;
  padding-bottom: 0;
  min-height: 60px;
}

.navbar .container {
  min-height: 60px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
  line-height: 60px;
  transition: color 0.15s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff !important;
}

.navbar-dark .navbar-nav .active > .nav-link {
  color: #ffffff !important;
}

.navbar .dropdown-menu {
  background: #010120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: rgba(1, 1, 32, 0.4) 0px 8px 24px;
  padding: 6px;
  margin-top: 4px;
}

.navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  border-radius: 4px;
  padding: 8px 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.navbar .search-field {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-size: 14px;
  height: 36px;
}

.navbar .search-field::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.navbar .search-field:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
  outline: none;
}

.navbar .fa-search {
  color: rgba(255, 255, 255, 0.4) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px;
}

/* ── 3. 文章列表卡片 ────────────────────────────────────────── */

#resultsArea .container {
  padding: 0;
}

#resultsArea article {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: rgba(1, 1, 32, 0.04) 0px 2px 8px;
}

#resultsArea article:hover {
  box-shadow: rgba(1, 1, 32, 0.1) 0px 6px 20px;
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.15);
}

#resultsArea hr {
  display: none;
}

#resultsArea article .col-sm-4 img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

#resultsArea article h2.h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 6px !important;
  transition: color 0.15s ease;
}

#resultsArea article a:hover h2.h4 {
  color: #2563eb;
}

#resultsArea article .text-muted {
  font-size: 13px;
  color: #64748b !important;
}

#resultsArea article .badge-light {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569 !important;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

#resultsArea article p[style*="font-size: 12px"] {
  font-size: 13px !important;
  line-height: 1.65;
  color: #64748b;
  margin-top: 6px !important;
}

/* ── 4. 分页器 ─────────────────────────────────────────────── */

.pagination .page-link {
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
  border-radius: 6px !important;
  margin: 0 3px;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  transition: all 0.15s ease;
}

.pagination .page-link:hover {
  background: #010120;
  color: #ffffff;
  border-color: #010120;
}

.pagination .page-item.active .page-link {
  background: #010120;
  border-color: #010120;
  color: #ffffff;
}

/* ── 5. 文章详情页 ──────────────────────────────────────────── */

.article-content,
.with-sidebar-content {
  font-size: 16px;
  line-height: 1.85;
  color: #1e293b;
}

.article-content h2 {
  font-size: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-bottom: 8px;
  letter-spacing: -0.025em;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.article-content h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-content p {
  margin-bottom: 1.25em;
  line-height: 1.85;
}

.article-content a {
  color: #2563eb;
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}

.article-content a:hover {
  border-bottom-color: #2563eb;
}

.article-content code {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  color: #0f172a;
}

.article-content blockquote {
  border-left: 3px solid #010120;
  background: rgba(1, 1, 32, 0.03);
  padding: 12px 20px;
  border-radius: 0 6px 6px 0;
  margin: 1.5em 0;
  color: #334155;
}

.article-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin: 1.5em 0;
}

.article-content th {
  background: #010120;
  color: #ffffff;
  font-weight: 500;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
}

.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  color: #334155;
}

.article-content tr:hover td {
  background: rgba(1, 1, 32, 0.02);
}

/* ── 6. 页面标题 ────────────────────────────────────────────── */

#page-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 32px;
  margin-top: 16px;
}

/* ── 7. 页脚 ────────────────────────────────────────────────── */

.footer {
  background: #010120;
  border-top: none;
  padding: 24px 0;
  margin-top: 64px;
}

.footer p,
.footer .small {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 13px;
}

.footer a {
  color: rgba(255, 255, 255, 0.55) !important;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ── 8. 顶部间距 ────────────────────────────────────────────── */

.main-content {
  padding-top: 24px;
}

body {
  padding-top: 60px;
}

/* ── 9. 侧边栏 ──────────────────────────────────────────────── */

.sidebar-widget {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: rgba(1, 1, 32, 0.04) 0px 2px 8px;
}

.tag-cloud a,
.tags-widget a {
  display: inline-block;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 3px 2px;
  transition: all 0.15s ease;
}

.tag-cloud a:hover,
.tags-widget a:hover {
  background: #010120;
  color: #ffffff;
  border-color: #010120;
}

/* ── 10. 响应式 ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  #resultsArea article {
    padding: 16px;
  }
  #page-title {
    font-size: 22px;
  }
  .navbar-dark .navbar-nav .nav-link {
    line-height: 2.5;
    padding: 0 8px;
  }
}
