/* 武进人才网 (www.wjrce.com) - Clean Industrial-Tech Civic Portal CSS */
:root {
  --brand: #165dff;
  --brand-dark: #0e42d2;
  --brand-soft: #eef4ff;
  --navy: #0f1e3a;
  --navy-light: #1e3156;
  --teal: #0ea5a4;
  --teal-soft: #e6f8f7;
  --salary: #f04c00;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #182235;
  --text-secondary: #4e5d78;
  --text-muted: #7887a0;
  --border: #e3e8f2;
  --border-strong: #cdd6e6;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 30, 58, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 30, 58, 0.08);
  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

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

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 13px;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.main-nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-header-tool:hover {
  background: var(--brand);
}

.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  padding: 0;
}

/* Mandatory Top Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, #edf4ff 0%, #f1fbfa 100%);
  border-bottom: 1px solid #d9e6ff;
  color: var(--navy);
  font-size: 13.5px;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}

.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  color: #213458;
  font-weight: 500;
  line-height: 1.5;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0d1d3c 0%, #143269 52%, #114c78 100%);
  color: #fff;
  padding: 40px 0 36px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #dbeafe;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0 0 22px;
  color: #cfe0ff;
  font-size: 15px;
  max-width: 620px;
}

.hero-search-form {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(7, 17, 38, 0.25);
  max-width: 650px;
}

.hero-search-form input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}

.hero-search-form select {
  border: none;
  border-left: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  background: transparent;
  outline: none;
  max-width: 150px;
}

.hero-search-form button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search-form button:hover {
  background: var(--brand-dark);
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: #b7cff7;
}

.hot-tags a {
  color: #e6f0ff;
  background: rgba(255, 255, 255, 0.11);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
}

.hot-tags a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hero-stat-box {
  background: rgba(10, 22, 45, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
}

.hero-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12.5px;
  color: #b9d0f5;
  margin-top: 2px;
}

.hero-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-quick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.hero-quick-btn:hover {
  background: #fff;
  color: var(--brand);
}

/* Sections & Headings */
.section {
  padding: 36px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--brand);
  border-radius: 4px;
  display: inline-block;
}

.section-desc {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-width: 0;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #bfd4ff;
}

/* Job Card */
.job-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.job-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
}

.job-title a {
  color: var(--navy);
}

.job-title a:hover {
  color: var(--brand);
}

.job-salary {
  color: var(--salary);
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.job-meta span {
  background: #f1f4fa;
  padding: 2px 8px;
  border-radius: 5px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}

.tag-teal {
  background: var(--teal-soft);
  color: #0b7a79;
}

.tag-warm {
  background: #fff3e8;
  color: #c84b00;
}

.job-card-foot {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.job-company {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-area-badge {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Company & Park Card */
.company-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--navy);
}

.company-card p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Fair Card */
.fair-card {
  border-left: 4px solid var(--brand);
}

.fair-date {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.fair-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy);
}

.fair-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0;
}

/* Article Lists */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.article-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-list li:first-child {
  padding-top: 0;
}

.article-item-title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.45;
}

.article-item-title:hover {
  color: var(--brand);
}

.article-item-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-item-summary {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Page Banner (Inner Pages) */
.page-banner {
  background: linear-gradient(120deg, #102347 0%, #174082 100%);
  color: #fff;
  padding: 28px 0;
}

.page-banner h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.3;
}

.page-banner p {
  margin: 0;
  color: #cfe0ff;
  font-size: 14.5px;
  max-width: 760px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

/* Filter Bar */
.filter-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-label {
  width: 78px;
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  padding-top: 4px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 6px;
  color: var(--text-secondary);
  background: #f3f6fb;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--brand);
  color: #fff;
}

.inline-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Two Column Content + Sidebar Layout */
.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Article & Detail Prose */
.prose h2 {
  font-size: 19px;
  color: var(--navy);
  margin: 24px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}

.prose h3 {
  font-size: 16.5px;
  color: var(--navy);
  margin: 18px 0 8px;
}

.prose p {
  margin: 0 0 14px;
  color: #27344d;
  line-height: 1.8;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #27344d;
}

.prose li {
  margin-bottom: 6px;
  line-height: 1.75;
}

.ai-tip-box {
  background: linear-gradient(135deg, #eef6ff 0%, #e9fbf9 100%);
  border: 1px solid #c5e0ff;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
}

.ai-tip-title {
  font-weight: 700;
  color: #0b4a9f;
  margin: 0 0 6px;
  font-size: 15px;
}

.notice-box {
  background: #fff9eb;
  border: 1px solid #fde2a7;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  color: #6b4700;
}

/* Interactive Tool Forms */
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}

.calc-result {
  background: #f8faff;
  border: 1px solid #d5e4ff;
  border-radius: var(--radius);
  padding: 18px;
}

.calc-highlight {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  margin: 4px 0 12px;
}

.calc-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.calc-kv:last-child {
  border-bottom: none;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 540px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: #f3f6fb;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.pagination a,
.pagination span {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c2d1eb;
  padding: 40px 0 26px;
  margin-top: 40px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  color: #b7c8e6;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #93a7cc;
}

.footer-bottom a {
  color: #cfe0ff;
}

/* Responsive Breakpoints (Mobile-Safe at 375px) */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .nav-toggle { display: inline-flex; }
  .btn-header-tool { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 4px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 12px;
  }
  .site-logo {
    height: 36px;
  }
  .hero {
    padding: 26px 0 24px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero-search-form {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .hero-search-form select {
    border-left: none;
    border-top: 1px solid var(--border);
    max-width: 100%;
    padding: 10px 8px;
  }
  .grid-3, .grid-2, .grid-4, .tool-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .filter-row {
    flex-direction: column;
    gap: 6px;
  }
  .filter-label {
    width: auto;
    padding-top: 0;
  }
  .announce-inner {
    align-items: flex-start;
  }
  .section {
    padding: 26px 0;
  }
  .section-title {
    font-size: 19px;
  }
  .page-banner h1 {
    font-size: 22px;
  }
  .job-card-top {
    flex-direction: column;
    gap: 4px;
  }
  .inline-search {
    flex-direction: column;
  }
}
