/* ==========================================================
   菁路人力资源（南宁）有限公司 · 官网样式
   风格：科技简约 —— 冷色调 / 细线 / 大留白 / 轻几何
   改主色只需改 :root 里的 --brand / --brand-2
   ========================================================== */
:root {
  --brand: #1657e0;
  --brand-2: #00c2e0;
  --dark: #081627;
  --dark-2: #0d2138;

  --ink: #0a1628;
  --ink-2: #33465f;
  --muted: #6b7c93;
  --line: #e4ebf4;
  --line-2: #eef3f9;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;

  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 10px 30px rgba(10, 22, 40, .05);
  --shadow-lg: 0 18px 50px rgba(10, 22, 40, .10);
  --maxw: 1180px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.3px; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: var(--nav-h); gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: grid; place-items: center;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-txt b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: .2px; line-height: 1.25; }
.brand-txt span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }

.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; white-space: nowrap; transition: color .18s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--brand); transition: right .25s;
}
.nav-links a:hover, .nav-links a.on { color: var(--brand); }
.nav-links a:hover::after, .nav-links a.on::after { right: 0; }

.nav-tel {
  display: flex; align-items: center; gap: 7px; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap;
  transition: .18s;
}
.nav-tel:hover { border-color: var(--brand); color: var(--brand); }
.nav-tel svg { width: 15px; height: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: .2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(22, 87, 224, .22); }
.btn-primary:hover { background: #0f47bd; transform: translateY(-1px); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-line:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------- Hero（亮色 · 商务办公楼背景） ---------------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: #eef4fb;
  padding: 96px 0 86px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("./img/hero-bg.webp");
  background-size: cover; background-position: center right;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22, 87, 224, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 87, 224, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(110% 92% at 16% 42%, #000 24%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(96deg,
    #ffffff 0%, rgba(255, 255, 255, .97) 30%, rgba(255, 255, 255, .82) 50%,
    rgba(244, 249, 254, .45) 72%, rgba(238, 245, 253, .22) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #0f47bd; padding: 7px 15px;
  border: 1px solid rgba(22, 87, 224, .2); border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 14px rgba(22, 87, 224, .07);
  backdrop-filter: blur(6px);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); flex: none; }
.hero h1 { font-size: 52px; margin: 24px 0 18px; max-width: 15em; color: var(--ink); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #1657e0, #00a7c4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: 18px; color: var(--ink-2); max-width: 34em; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-line { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.hero .btn-line:hover { background: #fff; border-color: var(--brand); color: var(--brand); }

.hero-stats {
  position: relative; z-index: 2;
  margin-top: 68px; padding-top: 30px;
  border-top: 1px solid rgba(10, 22, 40, .1);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.hero-stats .s b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.hero-stats .s span { font-size: 13.5px; color: var(--muted); }

/* ---------------- 通用区块 ---------------- */
section { padding: 88px 0; }
section.tight { padding: 66px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
section.dark { background: var(--dark); color: #fff; }
section.dark .sec-head h2 { color: #fff; }
section.dark .sec-head p { color: #9fb3c9; }

.sec-head { max-width: 660px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .tag {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand); display: block; margin-bottom: 12px;
}
.sec-head h2 { font-size: 34px; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 16.5px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; transition: .22s;
}
.card:hover { border-color: #c3d5f0; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(22, 87, 224, .1), rgba(0, 194, 224, .1));
  color: var(--brand); margin-bottom: 18px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* 服务行业标签 */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); background: #fff;
}

/* ---------------- 业务条目 ---------------- */
.biz { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 74px 0; border-bottom: 1px solid var(--line-2); }
.biz:last-of-type { border-bottom: 0; }
.biz.rev .biz-media { order: 2; }
.biz-media img { border-radius: var(--r); box-shadow: var(--shadow-lg); width: 100%; }
.biz-no {
  font-size: 13px; font-weight: 800; letter-spacing: 1.6px; color: var(--brand);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.biz-no::after { content: ""; width: 34px; height: 1px; background: var(--brand); opacity: .5; }
.biz h3 { font-size: 25px; margin-bottom: 14px; }
.biz .lead { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.biz ul { list-style: none; padding: 0; margin: 0; }
.biz li { position: relative; padding-left: 22px; margin-bottom: 11px; font-size: 15px; color: var(--ink-2); }
.biz li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--brand-2);
}

/* ---------------- 优势 ---------------- */
.adv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.adv-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 20px; transition: .22s;
}
.adv-item:hover { border-color: #c3d5f0; box-shadow: var(--shadow); transform: translateY(-3px); }
.adv-item .n { font-size: 12.5px; font-weight: 800; color: var(--brand-2); letter-spacing: 1.5px; }
.adv-item h3 { font-size: 16.5px; margin: 12px 0 8px; }
.adv-item p { font-size: 14px; color: var(--muted); }

/* ---------------- 文字内容页（关于/隐私）页头 ---------------- */
.page-head {
  position: relative; overflow: hidden; color: var(--ink);
  background: #eef4fb; border-bottom: 1px solid var(--line);
  padding: 74px 0 62px;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("./img/pagehead-bg.webp");
  background-size: cover; background-position: center right;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(94deg,
    #ffffff 0%, rgba(255, 255, 255, .96) 38%, rgba(255, 255, 255, .74) 62%,
    rgba(244, 249, 254, .34) 84%, rgba(238, 245, 253, .2) 100%);
}
.page-head .hero-grid { z-index: 1; opacity: .7; }
.page-head .wrap { position: relative; z-index: 3; }
.page-head h1 { font-size: 38px; margin: 16px 0 12px; color: var(--ink); }
.page-head p { color: var(--ink-2); font-size: 16px; max-width: 40em; }

.prose { max-width: 800px; }
.prose h2 { font-size: 22px; margin: 42px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; color: var(--ink-2); margin-bottom: 16px; }
.prose ol, .prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { font-size: 16px; color: var(--ink-2); margin-bottom: 12px; }
.prose strong { color: var(--ink); }
.prose .hl {
  background: var(--bg-soft); border-left: 3px solid var(--brand);
  padding: 18px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 24px 0;
  font-size: 15.5px; color: var(--ink-2);
}

/* ---------------- 联系 ---------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: start; }
.info { list-style: none; padding: 0; margin: 0; }
.info li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.info .lb { color: var(--muted); font-size: 14px; flex: none; width: 72px; }
.info .vl { font-size: 15.5px; font-weight: 600; color: var(--ink); word-break: break-all; }
.info a.vl:hover { color: var(--brand); }

form.inquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field label .req { color: #e02424; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 87, 224, .12);
}
.field textarea { resize: vertical; min-height: 104px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 8px 0 20px; }
.consent input { width: auto; margin-top: 4px; }
/* 蜜罐字段：真人不可见、不可聚焦，只有脚本会填 */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 12px 15px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------------- CTA 条 ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, #0a44b8 55%, var(--brand-2) 140%);
  color: #fff; border-radius: var(--r); padding: 52px 46px;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 15.5px; }
.cta-band .btn-line { margin-left: auto; flex: none; }

/* ---------------- 页脚（亮色版） ---------------- */
footer {
  background: #f5f8fc; color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 62px 0 28px; font-size: 14.5px;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
footer .brand-txt b { color: var(--ink); }
footer .brand-mark { box-shadow: 0 6px 16px rgba(22, 87, 224, .2); }
footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 16px; font-weight: 700; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; color: var(--muted); }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--brand); }
footer .foot-desc { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 30em; }
.foot-bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: var(--muted);
}
.foot-bottom a { color: var(--ink-2); }
.foot-bottom a:hover { color: var(--brand); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1060px) {
  .adv { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-tel { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 26px 22px; gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
  .nav-toggle { display: block; margin-left: auto; }

  .hero { padding: 68px 0 60px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .93) 55%, rgba(255, 255, 255, .88) 100%);
  }
  .hero-bg { background-position: center 30%; background-image: url("./img/hero-bg-sm.webp"); }
  .page-head::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 60%, rgba(255, 255, 255, .86) 100%);
  }
  .page-head::before { background-image: url("./img/pagehead-bg-sm.webp"); }
  .hero h1 { font-size: 33px; }
  .hero .sub { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }

  .grid-2, .contact-grid, .biz { grid-template-columns: 1fr; gap: 32px; }
  .biz.rev .biz-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .adv { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }

  section { padding: 60px 0; }
  .sec-head h2 { font-size: 26px; }
  .page-head h1 { font-size: 28px; }
  .cta-band { padding: 36px 26px; }
  .cta-band .btn-line { margin-left: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .grid-4, .adv { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

/* ---------- 后台页（admin.html） ---------- */
.admin-body { background: var(--bg-soft); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 36px 32px; }
.login-card h1 { font-size: 22px; margin: 18px 0 6px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.admin-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-bar .wrap { display: flex; align-items: center; height: 64px; gap: 16px; }
.admin-bar .who { margin-left: auto; font-size: 14px; color: var(--muted); }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-top: 26px; }
.table-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.table-head h2 { font-size: 17px; margin: 0; }
.table-head .count { font-size: 13px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fafbfd; font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: #fafbff; }
td.msg { max-width: 320px; white-space: pre-wrap; word-break: break-word; }
.empty { padding: 56px 22px; text-align: center; color: var(--muted); font-size: 15px; }
