/* 海投 - 移动优先，中文友好，精致风格 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --bg: #0c0e12;
  --bg-subtle: #12151c;
  --surface: #161b24;
  --surface-hover: #1c222d;
  --border: #30363d;
  --border-subtle: #21262d;
  --text: #eaeef2;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.15);
  --remote: #3fb950;
  --hybrid: #d29922;
  --onsite: #f85149;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.2);
  /* Cropped Indeed WebP edge / wordmark field blue */
  --indeed-wordmark-blue: rgb(0, 77, 148);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --gradient-header: linear-gradient(135deg, #161b24 0%, #0d1117 50%, #161b24 100%);
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Helps Chrome/Android & MIUI browsers use dark form controls instead of white native buttons */
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(88, 166, 255, 0.08), transparent);
}

.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - 更精致 */
.site-header {
  background: var(--gradient-header);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.site-title {
  margin: 0;
  line-height: 0;
}

.site-title-logo {
  display: block;
  /* Source 845×768 (w:h ≈ 1.1:1); 2× prior display scale */
  aspect-ratio: 845 / 768;
  height: clamp(72px, 18vw, 104px);
  width: auto;
  max-width: min(100%, 840px);
  object-fit: contain;
  object-position: left center;
}

.site-tagline {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Top nav — tabs + 联系我们 dropdown */
.site-nav {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  padding: 0;
}

.site-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 12px;
}

.site-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.site-nav-tab {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  /* Reset native Android/WebKit button skin (otherwise often white bg + black text on mobile) */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-muted);
  background: transparent;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.site-nav-tab:hover {
  color: var(--text);
  background: var(--surface-hover);
  background-color: var(--surface-hover);
}

.site-nav-tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  background-color: rgba(88, 166, 255, 0.15);
  border-color: rgba(88, 166, 255, 0.35);
}

/* Indeed tab: cropped blue wordmark WebP (~500×175); second tab after 职位 */
.site-nav-tab--indeed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  min-width: 56px;
}

/* Small wordmarks: tight blue pad (half former 10px side → 5px); hub hero excluded below. */
.site-nav-tab--indeed .site-nav-tab-indeed-logo {
  display: block;
  width: auto;
  max-width: 120px;
  height: 24px;
  object-fit: contain;
  padding: 5px;
  box-sizing: content-box;
  background-color: var(--indeed-wordmark-blue);
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--border-subtle);
  filter: none;
}

.site-nav-tab--indeed.is-active .site-nav-tab-indeed-logo {
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.55);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--text);
  background: var(--surface);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.nav-dropdown-trigger:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  background-color: var(--surface-hover);
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 20;
}

.nav-dropdown-menu li button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--text);
  background: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.nav-dropdown-menu li button:hover {
  background: var(--surface-hover);
  background-color: var(--surface-hover);
}

.content-panel {
  width: 100%;
}

.empty-placeholder {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-top: 8px;
}

.empty-placeholder-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.empty-placeholder-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Indeed hub (regional Indeed links — grouped tag pills) */
.indeed-hub {
  padding: 12px 0 40px;
  max-width: 920px;
}

.indeed-hub-title {
  margin: 0 0 16px;
  line-height: 0;
}

.indeed-hub-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  max-height: 88px;
  object-fit: contain;
  padding: 0;
  margin: 0;
  background: transparent;
  background-color: transparent;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.indeed-hub-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.indeed-hub-lead a {
  color: var(--accent);
  font-weight: 500;
}

.indeed-hub-lead .indeed-lead-wordmark-link {
  color: inherit;
  font-weight: inherit;
}

.indeed-lead-wordmark-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 2px;
  text-decoration: none;
  border-radius: 6px;
  line-height: 0;
}

.indeed-lead-wordmark-link:hover .indeed-lead-wordmark {
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.4);
}

.indeed-lead-wordmark {
  display: block;
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  padding: 5px;
  box-sizing: content-box;
  background-color: var(--indeed-wordmark-blue);
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.indeed-regions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.indeed-region-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.indeed-region-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px 10px 8px;
  font: inherit;
  color: var(--text-muted);
  background: rgba(22, 27, 36, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.indeed-region-toggle:hover {
  color: var(--text);
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.32);
}

.indeed-region-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.indeed-region-toggle[aria-expanded="true"] {
  color: var(--accent);
  border-color: rgba(88, 166, 255, 0.45);
  background: rgba(88, 166, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.12);
}

.indeed-region-title {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.indeed-region-chevron {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 1px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.indeed-region-toggle[aria-expanded="true"] .indeed-region-chevron {
  transform: rotate(-135deg);
  margin-top: -1px;
}

.indeed-region-panel {
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease,
    margin-top 0.35s ease;
  max-height: 2200px;
  opacity: 1;
  margin-top: 12px;
}

.indeed-region-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.indeed-region-panel .indeed-region-tags {
  padding-bottom: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .indeed-region-panel {
    transition: none;
  }

  .indeed-region-chevron {
    transition: none;
  }
}

.indeed-region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: stretch;
}

/* Per-tag hues via data-indeed-cc on <a.indeed-tag> (see docs/index.html). */
.indeed-tag {
  --indeed-tag-accent-rgb: 88, 166, 255;
  --indeed-tag-hot-rgb: 140, 200, 255;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 124px;
  max-width: 160px;
  padding: 14px 16px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  border: 1px solid rgba(var(--indeed-tag-accent-rgb), 0.32);
  background:
    linear-gradient(155deg, rgba(var(--indeed-tag-accent-rgb), 0.16) 0%, transparent 45%),
    linear-gradient(180deg, rgba(24, 29, 38, 0.98) 0%, rgba(14, 17, 22, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.32);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    filter 0.22s ease;
}

.indeed-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 110% 70% at 50% 0%,
    rgba(var(--indeed-tag-accent-rgb), 0.26),
    transparent 62%
  );
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.22s ease;
}

.indeed-tag:hover {
  border-color: rgba(var(--indeed-tag-hot-rgb), 0.58);
  box-shadow:
    0 0 0 1px rgba(var(--indeed-tag-accent-rgb), 0.28),
    0 8px 16px rgba(0, 0, 0, 0.22),
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(var(--indeed-tag-accent-rgb), 0.2);
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.05);
}

.indeed-tag:hover::after {
  opacity: 1;
}

.indeed-tag:active {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(0.98);
}

.indeed-tag:focus-visible {
  outline: 2px solid rgb(var(--indeed-tag-accent-rgb));
  outline-offset: 3px;
}

.indeed-tag[data-indeed-cc="at"] {
  --indeed-tag-accent-rgb: 188, 118, 82;
  --indeed-tag-hot-rgb: 235, 175, 130;
}
.indeed-tag[data-indeed-cc="be"] {
  --indeed-tag-accent-rgb: 210, 158, 60;
  --indeed-tag-hot-rgb: 248, 205, 120;
}
.indeed-tag[data-indeed-cc="dk"] {
  --indeed-tag-accent-rgb: 200, 110, 145;
  --indeed-tag-hot-rgb: 245, 175, 200;
}
.indeed-tag[data-indeed-cc="fi"] {
  --indeed-tag-accent-rgb: 65, 155, 205;
  --indeed-tag-hot-rgb: 125, 205, 245;
}
.indeed-tag[data-indeed-cc="fr"] {
  --indeed-tag-accent-rgb: 125, 130, 230;
  --indeed-tag-hot-rgb: 175, 180, 255;
}
.indeed-tag[data-indeed-cc="de"] {
  --indeed-tag-accent-rgb: 165, 155, 90;
  --indeed-tag-hot-rgb: 215, 205, 145;
}
.indeed-tag[data-indeed-cc="it"] {
  --indeed-tag-accent-rgb: 115, 170, 85;
  --indeed-tag-hot-rgb: 165, 220, 130;
}
.indeed-tag[data-indeed-cc="nl"] {
  --indeed-tag-accent-rgb: 220, 125, 55;
  --indeed-tag-hot-rgb: 255, 185, 115;
}
.indeed-tag[data-indeed-cc="no"] {
  --indeed-tag-accent-rgb: 85, 165, 210;
  --indeed-tag-hot-rgb: 140, 210, 250;
}
.indeed-tag[data-indeed-cc="pl"] {
  --indeed-tag-accent-rgb: 185, 85, 175;
  --indeed-tag-hot-rgb: 230, 145, 220;
}
.indeed-tag[data-indeed-cc="pt"] {
  --indeed-tag-accent-rgb: 50, 175, 145;
  --indeed-tag-hot-rgb: 105, 220, 195;
}
.indeed-tag[data-indeed-cc="es"] {
  --indeed-tag-accent-rgb: 220, 95, 75;
  --indeed-tag-hot-rgb: 255, 155, 130;
}
.indeed-tag[data-indeed-cc="se"] {
  --indeed-tag-accent-rgb: 75, 180, 215;
  --indeed-tag-hot-rgb: 135, 220, 250;
}
.indeed-tag[data-indeed-cc="ch"] {
  --indeed-tag-accent-rgb: 105, 185, 155;
  --indeed-tag-hot-rgb: 160, 230, 200;
}
.indeed-tag[data-indeed-cc="uk"] {
  --indeed-tag-accent-rgb: 95, 115, 220;
  --indeed-tag-hot-rgb: 155, 175, 255;
}
.indeed-tag[data-indeed-cc="jp"] {
  --indeed-tag-accent-rgb: 215, 110, 150;
  --indeed-tag-hot-rgb: 250, 170, 200;
}
.indeed-tag[data-indeed-cc="sg"] {
  --indeed-tag-accent-rgb: 165, 195, 70;
  --indeed-tag-hot-rgb: 210, 235, 125;
}
.indeed-tag[data-indeed-cc="au"] {
  --indeed-tag-accent-rgb: 195, 140, 55;
  --indeed-tag-hot-rgb: 240, 195, 110;
}
.indeed-tag[data-indeed-cc="nz"] {
  --indeed-tag-accent-rgb: 80, 170, 115;
  --indeed-tag-hot-rgb: 135, 215, 165;
}
.indeed-tag[data-indeed-cc="ae"] {
  --indeed-tag-accent-rgb: 205, 170, 95;
  --indeed-tag-hot-rgb: 245, 215, 150;
}
.indeed-tag[data-indeed-cc="il"] {
  --indeed-tag-accent-rgb: 70, 135, 245;
  --indeed-tag-hot-rgb: 130, 180, 255;
}
.indeed-tag[data-indeed-cc="ca"] {
  --indeed-tag-accent-rgb: 195, 70, 75;
  --indeed-tag-hot-rgb: 240, 125, 130;
}
.indeed-tag[data-indeed-cc="us"] {
  --indeed-tag-accent-rgb: 65, 125, 215;
  --indeed-tag-hot-rgb: 120, 175, 255;
}

.indeed-tag-wordmark {
  display: block;
  height: 20px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  padding: 5px;
  box-sizing: content-box;
  background-color: var(--indeed-wordmark-blue);
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.22s ease;
}

.indeed-tag:hover .indeed-tag-wordmark {
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.indeed-tag-label {
  position: relative;
  z-index: 1;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: rgba(234, 238, 242, 0.88);
  transition: color 0.22s ease;
}

.indeed-tag:hover .indeed-tag-label {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .indeed-tag,
  .indeed-tag::after,
  .indeed-tag-wordmark,
  .indeed-tag-label {
    transition: none;
  }

  .indeed-tag:hover,
  .indeed-tag:active {
    transform: none;
    filter: none;
  }
}

/* 公司官网 iframe modal (popunder lives in /exit/company-website.html only) */
.company-exit-modal {
  z-index: 101;
}

.company-exit-modal-box {
  display: flex;
  flex-direction: column;
  max-width: 420px;
  padding: 16px 18px 14px;
  overflow: hidden;
}

.company-exit-modal-box.contact-modal-box {
  overflow: hidden;
  padding: 16px 18px 14px;
  max-height: none;
}

.company-exit-modal--compact .company-exit-modal-box {
  max-width: 420px;
}

.company-exit-modal--compact .company-exit-modal-box.contact-modal-box {
  height: auto;
  max-height: none;
}

.company-exit-modal--with-overview .company-exit-modal-box {
  max-width: min(640px, 92vw);
  padding: 18px 20px 16px;
}

.company-exit-modal--with-overview .company-exit-modal-box.contact-modal-box {
  height: min(72vh, 560px);
  max-height: min(88vh, 620px);
}

.company-exit-modal .contact-modal-head {
  flex-shrink: 0;
}

.company-exit-iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.company-exit-modal--compact .company-exit-iframe {
  flex: 0 0 auto;
  height: 228px;
}

.company-exit-modal--with-overview .company-exit-iframe {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
}

@media (max-width: 768px) {
  .company-exit-modal {
    padding: 12px;
  }

  .company-exit-modal--with-overview .company-exit-modal-box.contact-modal-box {
    width: 100%;
    max-width: none;
    padding: 16px 16px 14px;
    height: min(85vh, 680px);
    max-height: 92vh;
    height: min(85dvh, 680px);
    max-height: 92dvh;
  }

  .company-exit-modal--compact .company-exit-iframe {
    height: 228px;
  }
}

/* Contact modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal.hidden {
  display: none !important;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.contact-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.contact-modal-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.contact-modal-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.contact-modal-hint {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-submit {
  margin-top: 8px;
  align-self: flex-start;
}

/* Filters */
.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 600px) {
  .filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .filters {
    grid-template-columns: repeat(5, 1fr);
  }
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-row label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-row select,
.filter-row input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-row input {
  background-image: none;
  padding-right: 14px;
}

.filter-row select:focus,
.filter-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Mobile: compact sticky summary (hidden on wide screens) */
.filter-summary-bar,
.filter-scroll-fab {
  display: none;
}

@media (max-width: 768px) {
  #filters-section {
    scroll-margin-top: 96px;
  }

  .filter-summary-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    position: sticky;
    /* Stay below sticky .site-header (z-index 10) once nav has scrolled away */
    top: calc(env(safe-area-inset-top, 0px) + 76px);
    z-index: 8;
    background: rgba(22, 27, 36, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
  }

  .filter-summary-bar-text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .filter-summary-bar-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: var(--radius-sm);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--transition), border-color var(--transition);
  }

  .filter-summary-bar-btn:hover {
    background: rgba(88, 166, 255, 0.22);
    border-color: var(--accent);
  }

  .filter-scroll-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    z-index: 40;
    min-width: 52px;
    min-height: 52px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  .filter-scroll-fab.filter-scroll-fab--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.results-header {
  margin-bottom: 16px;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Job cards - 更精致 */
.job-list {
  flex: 1;
  padding-bottom: 32px;
}

.job-scroll-root {
  height: min(72vh, 920px);
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.job-list-inner {
  position: relative;
  width: 100%;
}

.job-scroll-root .job-card {
  margin-bottom: 0;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.job-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.job-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.job-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.posted-day {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.work-mode {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.work-mode.remote {
  background: rgba(63, 185, 80, 0.18);
  color: var(--remote);
}

.work-mode.hybrid {
  background: rgba(210, 153, 34, 0.18);
  color: var(--hybrid);
}

.work-mode.onsite {
  background: rgba(248, 81, 73, 0.18);
  color: var(--onsite);
}

.job-company {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.job-description {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.job-card.expanded .job-description {
  max-height: none;
}

.job-description-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--surface));
  pointer-events: none;
}

.job-card.expanded .job-description-fade {
  display: none;
}

.job-disclaimer {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

.job-disclaimer:empty {
  display: none;
}

.job-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--surface-hover);
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px;
  font-size: 1rem;
}

.load-more {
  display: block;
  width: 100%;
  margin: 24px 0 32px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.load-more:hover {
  background: rgba(88, 166, 255, 0.25);
  transform: translateY(-1px);
}

.load-more.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
}

.site-footer p {
  margin: 0;
}

/* 移民政策资讯 — 文章列表与正文 */
.immigration-hub {
  margin-top: 8px;
}

.immigration-toolbar {
  padding: 16px 18px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.immigration-toolbar-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.immigration-tag-filter {
  width: 100%;
  max-width: 280px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.immigration-toolbar-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.immigration-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.immigration-article-card {
  margin: 0;
}

.immigration-article-open {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.immigration-article-open:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.immigration-article-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.immigration-pin-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--surface);
  background: var(--accent);
  line-height: 1.4;
}

.immigration-article-card-title-row .immigration-article-card-title {
  margin-bottom: 0;
  flex: 1 1 12rem;
  min-width: 0;
}

.immigration-article-card-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
}

.immigration-article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.immigration-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: 999px;
}

.immigration-article-card-excerpt {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.immigration-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.immigration-article-detail {
  padding: 4px 0 32px;
}

.immigration-back-btn {
  margin-bottom: 20px;
}

.immigration-article-detail-inner {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.immigration-article-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.immigration-article-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.immigration-meta {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.immigration-meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.immigration-meta--muted {
  font-size: 0.82rem;
}

.immigration-section {
  margin-top: 28px;
}

.immigration-section:first-of-type {
  margin-top: 0;
}

.immigration-h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.immigration-h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.immigration-section p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.immigration-section p strong {
  color: var(--text);
}

.immigration-table-actions {
  margin: 14px 0 16px;
}

.immigration-download-btn {
  font-size: 0.88rem;
}

.immigration-table-wrap {
  overflow-x: auto;
  margin: 12px 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.immigration-figure {
  margin: 14px 0 10px;
  padding: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.immigration-figure a {
  display: block;
}

.immigration-figure-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.immigration-figure-caption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.immigration-figure-caption a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.immigration-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.immigration-table-caption {
  caption-side: top;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-subtle);
}

/* IMF WEO GDP-per-capita article: a bit more air above table titles */
.imf-weo-table > .immigration-table-caption {
  padding: 14px 12px 10px;
}

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

.immigration-data-table th {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* IMF article: China comparison helper table — align figures for scanning */
.immigration-data-table--china-compare thead th {
  white-space: normal;
}

.immigration-data-table--china-compare .immigration-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.immigration-data-table tbody tr:last-child th,
.immigration-data-table tbody tr:last-child td {
  border-bottom: none;
}

.immigration-data-table tbody tr.immigration-table-row-highlight td {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-subtle));
  color: var(--text);
  font-weight: 500;
}

.immigration-rank-expand {
  margin-top: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}

.immigration-rank-expand-summary {
  cursor: pointer;
  padding: 12px 14px;
  background: var(--bg-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.immigration-rank-expand-summary::-webkit-details-marker {
  display: none;
}

.immigration-rank-expand[open] .immigration-rank-expand-summary {
  border-bottom: 1px solid var(--border-subtle);
}

.immigration-rank-expand .immigration-table-wrap--nested {
  margin: 0;
  border-radius: 0;
}

.immigration-source-footnote {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

.immigration-embed-note {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.immigration-embed-note p {
  margin: 0 0 10px;
  font-size: 0.88rem;
}

.immigration-embed-note p:last-child {
  margin-bottom: 0;
}

.immigration-embed-note code {
  font-size: 0.82em;
  padding: 2px 6px;
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.immigration-loading,
.immigration-error {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.immigration-references {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.immigration-ref-list {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.immigration-ref-list li {
  margin-bottom: 10px;
}

.immigration-ref-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.immigration-ref-list a em {
  font-style: normal;
}
