/* Webnode 电工模板仿制 — 人力资源版 */
:root {
  --color-primary: #f38100;
  --color-primary-dark: #d96f00;
  --color-text: #333333;
  --color-text-muted: #777777;
  --color-bg: #ffffff;
  --color-bg-alt: #f9f9f9;
  --color-border: #e8e8e8;
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --header-height: 72px;
  --max-width: 1200px;
  --section-padding: 80px 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: none;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  z-index: 999;
}

.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile li {
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  background: #f5f5f5;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

@media (max-width: 767px) {
  .hero {
    min-height: 72vh;
  }

  .hero-bg-img {
    object-position: 65% center;
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.88) 45%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 80px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  max-width: 620px;
}

.hero h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 20px;
}

.hero p {
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero p strong {
  color: var(--color-text);
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .section-grid {
    grid-template-columns: 32% 1fr;
    gap: 48px;
    align-items: start;
  }

  .section-grid.about-grid {
    grid-template-columns: 32% 34% 34%;
  }
}

.section-title h1,
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 8px;
}

.section-body p {
  color: var(--color-text-muted);
  margin: 0 0 1em;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* Services */
.services-content {
  display: grid;
  gap: 32px;
}

@media (min-width: 600px) {
  .services-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

.service-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.service-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.service-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact */
.contact-section {
  background: var(--color-text);
  color: #fff;
  padding: 80px 24px;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.contact-section .section-title::after {
  background: var(--color-primary);
}

.contact-section h1,
.contact-section h2,
.contact-section h3 {
  color: #fff;
}

.contact-phone {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 16px 0;
  color: var(--color-primary);
}

.contact-tagline {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

.contact-details {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.contact-details a {
  color: var(--color-primary);
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
