/* ============================================
   南宁夜场招聘网 — 冷白 · 冰蓝主题
   qilinswk.com
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-accent: #F0F9FF;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --accent: #0EA5E9;
  --accent-hover: #0284C7;
  --accent-light: #E0F2FE;
  --accent-dark: #0C4A6E;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --wrap: 1100px;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; flex-shrink: 0; }
ul { list-style: none; }

/* --- Accessibility --- */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  padding: 10px 18px; background: var(--accent); color: #fff;
  z-index: 1000; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
/* --- Brand Logo (G2+T10) --- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-icon { flex-shrink: 0; width: 32px; height: 32px; }
.brand-icon svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; align-items: center; }
.brand-row { display: flex; align-items: center; gap: 0; }
.brand-blob {
  display: flex; align-items: center; gap: 0;
  background: linear-gradient(135deg, #E0F2FE, #F0F9FF);
  padding: 2px 12px 2px 8px; border-radius: 50px;
}
.brand-blob .a { font-size: 17px; font-weight: 600; color: var(--text-primary); }
.brand-blob .b { font-size: 17px; font-weight: 700; color: var(--accent); }
.brand-suffix { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.brand-domain { font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; margin-top: -1px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 0; position: relative; transition: color var(--transition);
}
.main-nav a::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px; height: 2px; background: var(--accent);
  border-radius: 1px; transition: transform var(--transition);
}
.main-nav a:hover, .main-nav .is-active { color: var(--accent); }
.main-nav .is-active::after, .main-nav a:hover::after { transform: translateX(-50%) scaleX(1); }
.header-phone {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border: 1px solid var(--accent-light);
  border-radius: 50px; color: var(--accent);
  font-size: 14px; font-weight: 600; transition: all var(--transition);
}
.header-phone:hover { background: var(--accent-light); border-color: var(--accent); }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 24px; text-align: center;
  background: linear-gradient(135deg, var(--bg-accent) 0%, #fff 50%, var(--bg-accent) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(14,165,233,0.06), transparent),
              radial-gradient(ellipse 40% 30% at 80% 100%, rgba(14,165,233,0.04), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: var(--text-muted); line-height: 1.8; max-width: 520px; margin: 0 auto 28px; }
.hero-summary strong { color: var(--accent); font-size: 1.18em; font-weight: 800; white-space: nowrap; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(14,165,233,0.25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,0.35); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent-light);
}
.btn-outline:hover { background: var(--accent-light); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- Filter Strip --- */
.filter-strip {
  max-width: var(--wrap); margin: -24px auto 0; padding: 0 24px;
  position: relative; z-index: 2;
}
.filter-inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 28px;
  box-shadow: var(--shadow); display: flex; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-right: 4px; white-space: nowrap; }
.filter-tag {
  display: inline-flex; padding: 6px 16px; border-radius: 50px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  background: var(--bg); border: 1px solid var(--border-light);
  cursor: pointer; transition: all var(--transition);
}
.filter-tag:hover { border-color: var(--accent); color: var(--accent); }
.filter-tag.is-active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* --- Sections --- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px; }
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.section-header p { font-size: 15px; color: var(--text-muted); max-width: 500px; line-height: 1.7; }

/* --- Featured Jobs (Card) --- */
.featured-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.job-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent-light); }
.job-card-img {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
}
.job-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.job-card:hover .job-card-img img { transform: scale(1.04); }
.job-card-body { padding: 20px; }
.job-card-body .job-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-light); padding: 2px 10px; border-radius: 4px; margin-bottom: 8px;
}
.job-card-body h3 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.job-card-body .job-meta { font-size: 13px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 12px; }
.job-card-body .job-meta span { display: flex; align-items: center; gap: 4px; }

/* --- Latest Jobs (List) --- */
.jobs-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.jobs-list-item {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 16px; align-items: center;
  background: var(--bg-card); padding: 16px 24px;
  transition: background var(--transition); cursor: pointer;
}
.jobs-list-item:hover { background: var(--bg-accent); }
.jobs-list-item .jl-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.jobs-list-item .jl-area { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.jobs-list-item .jl-salary { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.jobs-list-item .jl-time { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.jobs-list-item .jl-tag {
  display: inline-block; font-size: 12px; padding: 2px 8px;
  border-radius: 4px; background: var(--accent-light); color: var(--accent); font-weight: 500;
}

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary);
  font-size: 14px; transition: all var(--transition);
}
.pagination a.pag-prev,
.pagination a.pag-next { width: auto; padding: 0 14px; white-space: nowrap; }
.pagination a:hover,
.pagination .is-active,
.pagination a[aria-current="page"] { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.jobs-list-item[hidden] { display: none; }

/* --- Page Header (inner pages) --- */
.page-header {
  max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 0;
  text-align: center;
}
.page-header h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.page-header p { font-size: 15px; color: var(--text-muted); max-width: 500px; margin: 0 auto; line-height: 1.7; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); } .breadcrumb a:hover { color: var(--accent-hover); }

/* --- Filter Bar (jobs page) --- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.filter-bar .filter-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-bar .filter-group-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-right: 4px; }

/* --- Detail Page --- */
.detail-shell { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.detail-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.detail-header h1 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--text-muted); }
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-meta .detail-salary { font-weight: 700; color: var(--accent); font-size: 18px; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.detail-gallery .gallery-item {
  aspect-ratio: 4 / 3; background: var(--bg); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; overflow: hidden;
}
.detail-gallery .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.detail-body { font-size: 16px; line-height: 2; color: var(--text-secondary); }
.detail-body p { margin-bottom: 1em; }
.detail-body h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 32px 0 12px; }
.detail-contact {
  margin-top: 36px; padding: 24px 28px;
  background: var(--bg-accent); border: 1px solid var(--accent-light);
  border-radius: var(--radius); text-align: center;
}
.detail-contact h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.detail-contact p { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.detail-contact .contact-phone {
  display: inline-block; font-size: 24px; font-weight: 800; color: var(--accent);
  padding: 8px 24px; border: 2px solid var(--accent-light); border-radius: 50px;
  transition: all var(--transition);
}
.detail-contact .contact-phone:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.detail-contact .qr-wrap { width: fit-content; margin-inline: auto; align-items: center; }

/* --- About Page --- */
.about-content { max-width: 720px; margin: 0 auto; }
.about-content p { font-size: 16px; color: var(--text-secondary); line-height: 2; margin-bottom: 16px; }
.about-card {
  padding: 28px 32px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 20px;
}
.about-card h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.about-card p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 0; }
.about-contact {
  text-align: center; padding: 32px; background: var(--bg-accent);
  border: 1px solid var(--accent-light); border-radius: var(--radius);
  margin-top: 32px;
}
.about-contact h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.about-contact .contact-item { font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; }
.about-contact .contact-item strong { color: var(--accent); }
.about-contact-qr {
  width: fit-content;
  margin: 12px auto 0;
  align-items: center;
}

/* --- Footer --- */
.site-footer { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 32px; }
.footer-inner {
  padding: 32px 28px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.footer-brand h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 360px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 6px; }
.footer-col a { color: var(--accent); } .footer-col a:hover { color: var(--accent-hover); }
.footer-col:last-child { align-items: center; text-align: center; }
.footer-col:last-child .qr-wrap { width: fit-content; margin: 4px auto 0; align-items: center; }
.footer-bottom {
  margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); text-align: center;
}
.footer-bottom a { color: var(--accent); } .footer-bottom a:hover { color: var(--accent-hover); }

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav { display: none; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Clickable Card/Link Reset --- */
a.job-card-link { display: block; color: inherit; text-decoration: none; }
a.job-card-link:hover { color: inherit; }
a.jobs-list-item { color: inherit; text-decoration: none; }

/* --- District Grid --- */
.district-guide { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.district-guide h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; text-align: center; }
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.district-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; transition: all var(--transition); color: inherit; text-decoration: none; }
.district-card:hover { box-shadow: var(--shadow); border-color: var(--accent-light); transform: translateY(-2px); color: inherit; }
.district-card h4 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.district-card p { font-size: 14px; color: var(--text-muted); }
.district-card .count { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 6px; display: block; }

/* --- WeChat QR --- */
.qr-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.qr-img { width: 100px; height: 100px; border-radius: var(--radius-sm); }
.qr-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* --- Related Districts (inner pages) --- */
.related-districts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; justify-content: center; }
.related-districts a { padding: 8px 18px; border: 1px solid var(--border); border-radius: 50px; font-size: 14px; color: var(--text-secondary); transition: all var(--transition); }
.related-districts a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-inner { min-height: 56px; padding: 0 16px; }
  .brand { font-size: 17px; }

  .hero { padding: 56px 16px; }
  .hero p { font-size: 15px; }

  .filter-strip { margin-top: -16px; padding: 0 16px; }
  .filter-inner { padding: 16px; }

  .section { padding: 40px 16px; }
  .section-header { margin-bottom: 24px; }

  .featured-grid { grid-template-columns: 1fr; gap: 16px; }

  .jobs-list-item {
    grid-template-columns: 1fr auto;
    padding: 14px 16px;
  }
  .jobs-list-item .jl-area,
  .jobs-list-item .jl-time { display: none; }

  .page-header { padding: 28px 16px 0; }

  .filter-bar { flex-direction: column; align-items: flex-start; }

  .detail-shell { padding: 24px 16px 60px; }
  .detail-gallery { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { padding-bottom: max(16px, calc(56px + env(safe-area-inset-bottom))); }

  .mobile-bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .mobile-bottom-nav a {
    display: grid; grid-template-rows: 22px 14px; gap: 2px;
    align-items: center; justify-items: center;
    min-height: 48px; padding: 6px 0; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 11px; font-weight: 500;
    transition: color var(--transition), background var(--transition);
  }
  .mobile-bottom-nav a.is-active { color: var(--accent); background: var(--accent-light); }
  .mobile-bottom-nav a svg { width: 20px; height: 20px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* --- Mobile information board polish --- */
@media (max-width: 768px) {
  :root { --mobile-gutter: 16px; }

  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

  .header-inner {
    min-height: 58px;
    gap: 10px;
    padding: 0 var(--mobile-gutter);
  }
  .brand { min-width: 0; flex: 1 1 auto; gap: 7px; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-text { min-width: 0; align-items: flex-start; }
  .brand-row { min-width: 0; }
  .brand-blob { padding: 1px 6px; border-radius: 5px; }
  .brand-blob .a,
  .brand-blob .b { font-size: 16px; }
  .brand-suffix { font-size: 13px; white-space: nowrap; }
  .brand-domain { display: none; }
  .header-phone {
    flex: 0 0 auto;
    gap: 5px;
    padding: 8px 10px;
    font-size: 14px;
    white-space: nowrap;
  }
  .header-phone svg { width: 15px; height: 15px; }

  .hero {
    padding: 38px var(--mobile-gutter) 30px;
    text-align: left;
  }
  .hero-content { max-width: none; }
  .hero h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .hero p {
    max-width: none;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.8;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .hero-actions .btn {
    min-width: 0;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
  }

  .filter-strip {
    margin: 0;
    padding: 16px var(--mobile-gutter) 0;
  }
  .filter-inner {
    padding: 0 0 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  .filter-inner::-webkit-scrollbar,
  .filter-bar .filter-group::-webkit-scrollbar { display: none; }
  .filter-label,
  .filter-tag {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .filter-label { margin-right: 2px; }
  .filter-tag { padding: 7px 14px; }

  .section { padding: 32px var(--mobile-gutter); }
  .section-header { margin-bottom: 18px; }
  .section-header h2 { font-size: 23px; line-height: 1.35; }
  .section-header p { font-size: 14px; }

  .jobs-list {
    gap: 10px;
    overflow: visible;
    background: transparent;
    border-radius: 0;
  }
  .jobs-list-item {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }
  .jobs-list-item > div {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .jobs-list-item .jl-title {
    flex-basis: 100%;
    font-size: 15px;
    line-height: 1.55;
  }
  .jobs-list-item .jl-tag { margin: 0; }
  .jobs-list-item .jl-salary {
    align-self: center;
    font-size: 14px;
    line-height: 1.35;
    text-align: right;
  }

  .page-header {
    padding: 26px var(--mobile-gutter) 4px;
    text-align: left;
  }
  .breadcrumb { justify-content: flex-start; margin-bottom: 10px; }
  .page-header h1 { font-size: 27px; line-height: 1.35; margin-bottom: 7px; }
  .page-header p { margin: 0; font-size: 14px; }
  .filter-bar {
    display: block;
    margin-bottom: 18px;
    padding: 0 0 16px;
  }
  .filter-bar .filter-group {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter-bar .filter-group-label { flex: 0 0 auto; }

  .district-guide {
    margin-top: 32px;
    padding-top: 26px;
  }
  .district-guide h3 {
    margin-bottom: 14px;
    text-align: left;
    font-size: 19px;
  }
  .district-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .district-card {
    min-height: 132px;
    padding: 17px 14px;
    text-align: left;
    border-radius: 9px;
  }
  .district-card h4 { font-size: 17px; margin-bottom: 6px; }
  .district-card p { font-size: 13px; line-height: 1.65; }
  .district-card .count { margin-top: 10px; }

  .related-districts {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 24px;
  }
  .related-districts a { padding: 7px 14px; }

  .about-card { padding: 22px 18px; margin-bottom: 12px; }
  .about-contact { margin-top: 20px; padding: 22px 16px; }

  .site-footer {
    margin-top: 8px;
    padding: 0 var(--mobile-gutter) calc(14px + env(safe-area-inset-bottom));
  }
  .footer-inner {
    gap: 22px;
    padding: 26px 0 24px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    text-align: center;
  }
  .footer-brand { max-width: 330px; margin-inline: auto; }
  .footer-brand h3 { margin-bottom: 7px; }
  .footer-brand p { font-size: 13px; line-height: 1.7; }
  .footer-col { align-items: center; }
  .footer-col h4 { margin-bottom: 8px; }
  .footer-col:nth-child(2) {
    flex-direction: row;
    justify-content: center;
    gap: 0 18px;
  }
  .footer-col:nth-child(2) h4 { display: none; }
  .footer-col:nth-child(2) p { margin: 0; }
  .footer-col:nth-child(3) { gap: 4px; }
  .footer-col:nth-child(3) h4 { margin-top: 2px; }
  .footer-col:nth-child(3) .qr-wrap { margin-top: 4px; }
  .qr-wrap { align-items: center; }
  .qr-img { width: 96px; height: 96px; }
  .footer-bottom {
    gap: 5px;
    margin-top: 0;
    padding: 14px 0 6px;
    font-size: 12px;
    line-height: 1.7;
  }

  .mobile-bottom-nav {
    min-height: 62px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav a { min-height: 52px; }
}

/* --- Mobile homepage and jobs navigation --- */
@media (max-width: 768px) {
  .hero {
    padding: 40px var(--mobile-gutter) 26px;
    text-align: center;
  }
  .hero h1 {
    font-size: 32px;
    line-height: 1.28;
    margin-bottom: 12px;
  }
  .hero p {
    max-width: 344px;
    margin: 0 auto 22px;
    font-size: 14px;
    line-height: 1.85;
  }
  .hero-actions {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
  }
  .hero-actions .btn {
    min-height: 46px;
    padding: 11px 8px;
    border-radius: 24px;
  }

  .filter-strip {
    margin: 0;
    padding: 10px 5px 0;
  }
  .filter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
  }
  .filter-label { margin-right: 2px; }
  .filter-tag { padding: 7px 14px; }

  .jobs-page .filter-bar {
    margin-bottom: 24px;
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
  }
  .jobs-page .filter-bar .filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    overflow: visible;
    gap: 8px;
  }
  .jobs-page .filter-bar .filter-group-label {
    margin-right: 2px;
    white-space: nowrap;
  }
  .jobs-page .filter-bar .filter-tag {
    flex: 0 0 auto;
    padding: 7px 14px;
  }

  .jobs-page .related-districts {
    justify-content: center;
    gap: 10px;
    margin: 26px auto 0;
    padding: 0 6px;
  }
  .jobs-page .related-districts a {
    min-width: 64px;
    padding: 8px 12px;
    text-align: center;
    border-color: var(--border);
    background: transparent;
  }
  .jobs-page .pagination {
    margin-top: 26px;
    gap: 6px;
  }
  .jobs-page .pagination a {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }
  .jobs-page .pagination a.pag-prev,
  .jobs-page .pagination a.pag-next {
    font-size: 0;
    width: 36px;
    padding: 0;
  }
  .jobs-page .pagination a.pag-prev::before { content: '\2039'; font-size: 20px; font-weight: 700; }
  .jobs-page .pagination a.pag-next::before { content: '\203A'; font-size: 20px; font-weight: 700; }
  .detail-shell .related-districts {
    justify-content: center;
    align-items: center;
  }
}
