/* 盒伙人人力资源 · hr0577.cn */
:root {
  --ink: #0c1f33;
  --ink-soft: #243b53;
  --paper: #f4f7fa;
  --paper-2: #e8eef4;
  --line: rgba(12, 31, 51, 0.12);
  --accent: #0d6e6e;
  --accent-deep: #0a5555;
  --warm: #c4a574;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(12, 31, 51, 0.08);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header：默认浅色底，避免压在深色图上发灰 —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(12, 31, 51, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.15;
}

.brand__logo {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.82rem, 1.6vw, 1.05rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 14em;
  line-height: 1.25;
}

.brand__sub {
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--white) !important;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

/* —— Hero carousel（浅色遮罩 + 实景图，避免整屏发黑） —— */
.hero-carousel {
  position: relative;
  margin-top: 72px;
  height: min(78vh, 720px);
  min-height: 480px;
  overflow: hidden;
  background: var(--paper-2);
}

.carousel {
  position: relative;
  height: 100%;
}

.carousel__track {
  position: relative;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
  background-color: #d9e4ee;
  background-image:
    linear-gradient(
      105deg,
      rgba(248, 250, 252, 0.96) 0%,
      rgba(248, 250, 252, 0.88) 38%,
      rgba(248, 250, 252, 0.35) 62%,
      rgba(12, 31, 51, 0.18) 100%
    ),
    var(--slide-img);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel__content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: 2rem 0;
  color: var(--ink);
}

.carousel__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 18em;
  color: var(--ink);
}

.carousel__title {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.carousel__lead {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 30em;
}

.carousel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.carousel__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(12, 31, 51, 0.12);
  transition: background 0.2s, transform 0.2s;
}

.carousel__nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.04);
}

.carousel__nav--prev {
  left: max(1rem, calc((100% - var(--max)) / 2 - 0.5rem));
}

.carousel__nav--next {
  right: max(1rem, calc((100% - var(--max)) / 2 - 0.5rem));
}

.carousel__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(12, 31, 51, 0.25);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 2px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--paper-2);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--solid {
  background: var(--accent);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--accent-deep);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--white);
}

.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.section__desc {
  max-width: 40em;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.page-hero {
  padding: 8.5rem 0 3.5rem;
  background:
    linear-gradient(135deg, #0c1f33 0%, #16324f 50%, #0d5555 100%);
  color: var(--white);
}

.page-hero .section__eyebrow {
  color: var(--warm);
}

.page-hero .section__desc {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.prose {
  max-width: 42em;
}

.prose p {
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.panel li:last-child {
  border-bottom: 0;
}

/* service list — not cards in hero; interaction rows */
.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.service-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.service-item__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.service-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stat {
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--accent);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.contact-block p,
.contact-block a {
  color: var(--ink-soft);
  margin: 0.2rem 0;
}

.contact-block a:hover {
  color: var(--accent);
}

.map-panel {
  margin-top: 2.75rem;
}

.map-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.map-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.map-panel__link {
  font-size: 0.92rem;
  color: var(--accent);
}

.map-panel__link:hover {
  color: var(--accent-deep);
}

.map-frame {
  position: relative;
  width: 100%;
  height: min(52vh, 420px);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.footer__logo {
  width: 40px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin: 0;
  line-height: 1.35;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.process-list {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.process-item__step {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.process-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.process-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.15rem 1.35rem;
}

.faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.info-table th {
  width: 9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* —— Mobile —— */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.75rem;
  }

  .nav-toggle {
    display: block;
  }

  .split,
  .contact-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .process-item {
    grid-template-columns: 3.2rem 1fr;
  }

  .info-table th {
    width: 6.5rem;
  }

  .hero-carousel {
    height: auto;
    min-height: 520px;
  }

  .carousel__nav--prev {
    left: 0.75rem;
  }

  .carousel__nav--next {
    right: 0.75rem;
  }

  .carousel__content {
    padding: 3rem 0 4rem;
  }

  .service-item {
    grid-template-columns: 3rem 1fr;
  }
}
