/* ==========================================================
   珠海格力物业管理有限公司 - 招聘门户 样式表
   ========================================================== */

:root {
  --brand: #0a4d9c;
  --brand-dark: #073a76;
  --brand-light: #e8f1fb;
  --accent: #e1251b;
  --accent-soft: #fdecea;
  --gold: #d8a13a;
  --text: #1d2430;
  --text-sub: #5b6472;
  --text-muted: #8b93a1;
  --border: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 32, 56, .06);
  --shadow: 0 4px 16px rgba(16, 32, 56, .08);
  --shadow-lg: 0 12px 40px rgba(16, 32, 56, .12);
  --maxw: 1200px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #1266c9);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(10, 77, 156, .28);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-name b {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: .3px;
  white-space: nowrap;
}

.brand-name span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-sub);
  transition: .18s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--brand); background: var(--brand-light); }
.nav-links a.active { color: var(--brand); font-weight: 600; background: var(--brand-light); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(10, 77, 156, .3);
  transition: .18s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 18px; height: 2px; background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a4d9c 0%, #1266c9 55%, #1f86d8 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px; top: -180px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%);
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 70px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 76px 0 96px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px;
  margin-bottom: 22px;
}

.hero-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #48e0a0;
  box-shadow: 0 0 0 4px rgba(72, 224, 160, .22);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .5px;
}

.hero h1 em {
  font-style: normal;
  color: #ffd76a;
}

.hero p.lead {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .88);
  max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .2s;
  font-family: inherit;
}

.btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.2); }

.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Hero 数据卡 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  padding: 20px 22px;
  backdrop-filter: blur(6px);
}

.stat-card b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.stat-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }

.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .5px;
}
.sec-head p { margin: 0; color: var(--text-sub); font-size: 16px; }

.sec-head .line {
  width: 56px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), #4da3f5);
  margin: 16px auto 0;
}

/* ---------------- 关于 / 公司简介 ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

.about-text h3 { font-size: 26px; margin: 0 0 16px; }
.about-text p { color: var(--text-sub); margin: 0 0 16px; }

.about-licenses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.lic-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  color: var(--text-sub);
}

.lic-item i { color: var(--brand); font-style: normal; font-weight: 700; }

.info-card {
  background: linear-gradient(150deg, #0a4d9c, #1f86d8);
  color: #fff;
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.info-card h4 { margin: 0 0 20px; font-size: 19px; }
.info-row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 14.5px; }
.info-row:last-child { border-bottom: none; }
.info-row b { flex-shrink: 0; width: 84px; color: rgba(255,255,255,.72); font-weight: 400; }

/* ---------------- 岗位筛选 ---------------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 26px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.chip {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-sub);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: .18s;
}

.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.filter-count { margin-left: auto; font-size: 13.5px; color: var(--text-muted); }

.search-box {
  position: relative;
  min-width: 210px;
}
.search-box input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: .18s;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.search-box::before {
  content: "🔍";
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: .5;
}

/* ---------------- 岗位卡片 ---------------- */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.job-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: .22s;
  cursor: pointer;
  overflow: hidden;
}

.job-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), #4da3f5);
  opacity: 0;
  transition: .22s;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c9dcf5;
}
.job-card:hover::before { opacity: 1; }

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.job-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.job-dept { font-size: 13px; color: var(--text-muted); }

.job-salary {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--text-sub);
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin-bottom: 14px;
}

.job-meta span { display: inline-flex; align-items: center; gap: 5px; }

.job-summary {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--brand-light);
  color: var(--brand);
}

.job-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-num { font-size: 13px; color: var(--text-muted); }

.btn-apply {
  padding: 7px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: .18s;
}
.btn-apply:hover { background: var(--brand-dark); }

.badge-urgent {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
}

/* ---------------- 福利 ---------------- */
.welfare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.welfare-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: .22s;
}
.welfare-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9dcf5; }
.welfare-card .icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--brand-light);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.welfare-card b { display: block; font-size: 16px; margin-bottom: 8px; }
.welfare-card p { margin: 0; font-size: 13.5px; color: var(--text-sub); }

/* ---------------- 流程 ---------------- */
.process-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
}

.proc-item { text-align: center; position: relative; }

.proc-dot {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.proc-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c3d9f5 0 6px, transparent 6px 12px);
  z-index: 1;
}

.proc-item b { display: block; font-size: 15px; margin-bottom: 6px; }
.proc-item p { margin: 0; font-size: 13px; color: var(--text-sub); }

/* ---------------- 岗位详情 ---------------- */
.detail-head {
  background: linear-gradient(135deg, #0a4d9c, #1a72d0);
  color: #fff;
  padding: 46px 0 42px;
}

.detail-head h1 { margin: 0 0 14px; font-size: 32px; font-weight: 800; }
.detail-head .dmeta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; color: rgba(255,255,255,.88); }
.detail-head .salary-big { color: #ffd76a; font-size: 22px; font-weight: 800; }

.crumb { font-size: 13.5px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.crumb a:hover { color: #fff; text-decoration: underline; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 34px;
  padding: 46px 0 70px;
  align-items: start;
}

.block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.block h3 {
  margin: 0 0 16px;
  font-size: 19px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  line-height: 1.3;
}

.block ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 11px;
  color: var(--text-sub);
  line-height: 1.85;
}
.block ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.side-card h4 { margin: 0 0 16px; font-size: 17px; }
.side-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.side-row span { color: var(--text-muted); flex-shrink: 0; }
.side-row b { font-weight: 600; text-align: right; }

.side-card .btn { width: 100%; justify-content: center; margin-top: 18px; }
.side-tip { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; text-align: center; }

.related { margin-top: 8px; }
.rel-item {
  display: block;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-sub);
  transition: .18s;
}
.rel-item:hover { color: var(--brand); }
.rel-item b { display: block; font-size: 14.5px; color: var(--text); font-weight: 600; }
.rel-item:hover b { color: var(--brand); }
.rel-item small { color: var(--accent); font-weight: 600; }

/* ---------------- 表单 ---------------- */
.form-wrap { padding: 46px 0 76px; }
.form-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px 40px;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field label i { color: var(--accent); font-style: normal; margin-right: 3px; }

.field input,
.field select,
.field textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: .18s;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field .hint { font-size: 12.5px; color: var(--text-muted); }

.form-agree { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--text-sub); margin-top: 4px; }
.form-agree input { width: auto; margin-top: 4px; }

.form-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; }
.form-actions .btn { padding: 13px 44px; }

.form-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--brand-light);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-sub);
  border: 1px solid #d5e6fa;
}

.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: #16324f;
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: .28s;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 联系 ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.contact-card .icon { font-size: 30px; margin-bottom: 12px; }
.contact-card b { display: block; font-size: 15px; margin-bottom: 8px; color: var(--text-muted); font-weight: 400; }
.contact-card p { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }

/* ---------------- 页脚 ---------------- */
.footer {
  background: #101c2c;
  color: rgba(255, 255, 255, .68);
  padding: 52px 0 0;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-logo { width: 44px; height: 44px; font-size: 18px; }
.footer-brand b { color: #fff; font-size: 17px; }
.footer p.fdesc { margin: 0 0 16px; line-height: 1.85; max-width: 360px; }

.footer h5 { color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 600; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: #4da3f5; }

.footer-bottom {
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}

.footer-bottom .icp-line { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-bottom a:hover { color: #4da3f5; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 70px; }
  .hero h1 { font-size: 34px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .process-wrap { grid-template-columns: repeat(3, 1fr); gap: 24px 8px; }
  .proc-item:not(:last-child)::after { display: none; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; border-radius: 6px; }
  .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 15.5px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .sec-head h2 { font-size: 25px; }
  .section { padding: 54px 0; }
  .job-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .about-licenses { grid-template-columns: 1fr; }
}

/* 打印 / 截图优化 */
@media print {
  .nav, .hero-actions, .btn-apply, .footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
