/* ==========================================================================
   人力资源页面（hr.html）样式 - 依据「6人力资源.png」设计图改版
   ========================================================================== */

:root {
  --hr-blue: #007aff;
  --hr-blue-dark: #0066d4;
  --hr-text: #333;
  --hr-sub: #666;
  --hr-muted: #999;
  --hr-line: #eee;
  --hr-bg: #f8f9fb;
  --hr-dark: #1a1f2c;
}

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hr-text);
  background: #fff;
}

/* 页面公共容器 */
.container,
.constrain {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 跳过链接（无障碍）：默认完全隐藏 */
.skip-link {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* 头部 */
.hr-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.hr-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.hr-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hr-header__logo img {
  height: 42px;
  width: auto;
}
.hr-header__logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--hr-text);
}
.hr-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hr-header__nav a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--hr-text);
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.hr-header__nav a:hover,
.hr-header__nav a.is-active {
  color: var(--hr-blue);
}
.hr-header__nav li {
  position: relative;
  list-style: none;
}
.hr-header__nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hr-header__nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s ease;
}
.hr-header__nav li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.hr-header__nav .submenu a {
  padding: 8px 18px;
  font-size: 14px;
  white-space: nowrap;
}
.hr-header__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hr-blue);
}
.hr-header__tel svg {
  width: 22px;
  height: 22px;
}
.hr-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e7e7e7;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* Banner */
.hr-banner {
  min-height: 480px;
  background-color: #05080f;
  background-size: cover;
  background-position: center;
}
/* 区域标题 */
.hr-section {
  padding: 60px 0;
  background-color: #f7f7f7;
}
.hr-section--gray {
  background: var(--hr-bg);
}
.hr-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 12px;
}
.hr-section__head h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--hr-text);
}
.hr-section__head small {
  font-size: 13px;
  color: var(--hr-muted);
}

/* 职位卡片 */
.hr-job-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hr-job {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--hr-line);
  border-radius: 0;
  transition: box-shadow .25s;
}
.hr-job:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}
.hr-job__left {
  width: 240px;
  min-width: 240px;
  padding: 28px 24px;
  border-right: 1px solid var(--hr-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hr-job__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--hr-text);
  margin-bottom: 10px;
}
.hr-job__meta {
  font-size: 13px;
  color: var(--hr-sub);
  line-height: 1.8;
}
.hr-job__meta span {
  display: block;
}
.hr-job__right {
  flex: 1;
  padding: 28px 60px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hr-job__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--hr-text);
  margin-bottom: 10px;
}
.hr-job__duty {
  font-size: 13px;
  color: var(--hr-sub);
  line-height: 1.9;
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
  counter-reset: duty;
}
.hr-job__duty li {
  position: relative;
  padding-left: 22px;
  counter-increment: duty;
}
.hr-job__duty li::before {
  content: counter(duty) "、";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--hr-sub);
}
/* 收起状态：只显示前两条职责，隐藏邮箱行 */
.hr-job:not(.is-open) .hr-job__duty li:nth-child(n+3) {
  display: none;
}
.hr-job:not(.is-open) .hr-job__mail {
  display: none;
}
/* 收起状态下去掉底部间距，让卡片更紧凑 */
.hr-job:not(.is-open) .hr-job__right {
  padding-bottom: 22px;
}
.hr-job__mail {
  font-size: 12px;
  color: var(--hr-blue);
}
.hr-job__mail a {
  color: var(--hr-blue);
  text-decoration: underline;
}
.hr-job__toggle {
  position: absolute;
  right: 0;
  top: 80px;
  transform: translate(50%, -50%);
  width: 30px;
  height: 30px;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.hr-job__toggle:hover {
  opacity: .85;
}
.hr-job__icon {
  display: block;
  width: 30px;
  height: 30px;
}
.hr-job__icon--close {
  display: none;
}
.hr-job.is-open .hr-job__icon--open {
  display: none;
}
.hr-job.is-open .hr-job__icon--close {
  display: block;
}
.hr-job__body {
  display: none;
  width: 100%;
  padding: 0 32px 28px;
  border-top: 1px solid var(--hr-line);
}
.hr-job.is-open .hr-job__body {
  display: block;
}

/* 在线留言 */
.hr-form {
  max-width: 1000px;
  margin: 0 auto;
}
.hr-form__title {
  font-size: 22px;
  font-weight: 500;
  color: var(--hr-text);
  margin-bottom: 28px;
}
.hr-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.hr-form__field {
  position: relative;
}
.hr-form__field span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff4d4f;
  font-size: 14px;
  line-height: 1;
}
.hr-form__field input,
.hr-form__field textarea {
  width: 100%;
  padding: 14px 16px 14px 26px;
  border: 1px solid var(--hr-line);
  border-radius: 0;
  font-size: 14px;
  color: var(--hr-text);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.hr-form__field input::placeholder,
.hr-form__field textarea::placeholder {
  color: #bbb;
}
.hr-form__field input:focus,
.hr-form__field textarea:focus {
  border-color: var(--hr-blue);
}
.hr-form__field textarea {
  min-height: 140px;
  resize: vertical;
}
.hr-form__submit {
  display: block;
  width: 200px;
  margin: 28px auto 0;
  padding: 14px 0;
  background: var(--hr-blue);
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}
.hr-form__submit:hover {
  background: var(--hr-blue-dark);
}


/* 页脚 */
.hr-footer {
  background: var(--hr-dark);
  color: rgba(255,255,255,.7);
  padding: 50px 0 20px;
  font-size: 13px;
}
.hr-footer .constrain {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}
.hr-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.5fr;
  gap: 40px;
  margin-bottom: 30px;
}
.hr-footer__logo img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}
.hr-footer__qr {
  display: inline-block;
  text-align: center;
  color: rgba(255,255,255,.6);
}
.hr-footer__qr img {
  width: 80px;
  height: 80px;
  margin-bottom: 6px;
}
.hr-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hr-footer__links h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.hr-footer__links a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 2;
  transition: color .2s;
}
.hr-footer__links a:hover {
  color: #fff;
}
.hr-footer__contact h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hr-footer__contact h4 svg {
  width: 18px;
  height: 18px;
  color: var(--hr-blue);
}
.hr-footer__phone {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.hr-footer__time {
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.hr-footer__police {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.hr-footer__police img {
  width: 16px;
  height: 16px;
}
.hr-footer__copyright {
  color: rgba(255,255,255,.5);
  line-height: 1.8;
}
.hr-footer__copyright a {
  color: rgba(255,255,255,.5);
}
.hr-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  margin-top: 20px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
}
.hr-footer__bottom a {
  color: rgba(255,255,255,.45);
  margin-right: 12px;
}

@media (max-width: 992px) {
  .hr-header__nav { display: none; }
  .hr-header__tel { display: none; }
  .hr-header__toggle { display: block; margin-left: auto; }
  .hr-job { flex-wrap: wrap; }
  .hr-job__left { width: 100%; border-right: none; border-bottom: 1px solid var(--hr-line); }
  .hr-job__toggle { width: 30px; height: 30px; transform: translate(50%, -50%); }
  .hr-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hr-footer__links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hr-banner h1 { font-size: 30px; }
  .hr-form__grid { grid-template-columns: 1fr; }
  .hr-form__submit { width: 100%; }
  .hr-footer__links { grid-template-columns: 1fr; }
}
