/* ====== CSS Variables ====== */
:root {
  --primary: #0c5a93;
  --primary-dark: #083b63;
  --primary-soft: #e7f1fa;
  --text: #1f3040;
  --muted: #556677;
  --muted-light: #7f92a3;
  --border: #d4dfe9;
  --bg: #f6f8fb;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(14, 45, 78, 0.05);
  --shadow: 0 8px 28px rgba(14, 45, 78, 0.08);
  --shadow-lg: 0 18px 44px rgba(14, 45, 78, 0.12);
}

/* ====== Reset ====== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ====== Scroll Reveal Animation ====== */
.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.17, 0.67, 0.22, 1),
              transform 0.75s cubic-bezier(0.17, 0.67, 0.22, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ====== Header (玻璃态) ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 90, 147, 0.08);
}

.nav-wrap {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

.brand .en-name {
  margin: 3px 0 0;
  font-size: 0.66rem;
  font-weight: 400;
  color: var(--muted-light);
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s, background 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--primary);
  background: rgba(12, 90, 147, 0.05);
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* ====== Page Hero (100vh, Logo行 + cover_nfwh1) ====== */
.page-hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e3eaf2;
}

.hero-bg img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ====== Section ====== */
.section {
  padding: 56px 0;
}

.section-light {
  background: var(--white);
}

.section-accent {
  background: linear-gradient(135deg, #083b63 0%, #0e6a99 100%);
  color: var(--white);
}

.page-section {
  padding: 56px 0;
}

.section-title {
  margin-bottom: 28px;
  text-align: center;
}

.section-title span {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
}

.section-title span::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--primary);
  margin: 6px auto 0;
}

.section-title h3 {
  margin: 0;
  font-size: 1.85rem;
  color: #15344a;
  font-weight: 700;
}

.section-title-light span {
  color: rgba(255, 255, 255, 0.85);
}
.section-title-light span::after {
  background: rgba(255, 255, 255, 0.6);
}
.section-title-light h3 {
  color: #fff;
}

/* ====== 公司简介====== */
.about-intro {
  position: relative;
  background: url("../images/cover_nfwh2.png") center/cover no-repeat;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 300px;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.about-intro-content {
  position: relative;
  z-index: 2;
  padding: 42px 48px;
  color: #fff;
}

.about-intro-content h4 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-left: 3px solid rgba(255, 255, 255, 0.7);
  padding-left: 12px;
}

.about-intro-content p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.9;
  opacity: 0.95;
}

.about-intro-content p + p {
  margin-top: 12px;
}

/* ====== 企业资质 ====== */
.qualification-section {
  margin-bottom: 0;
}

.qualification-section h4 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 700;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

/* ====== Carousel 通用 (Coverflow 旋转木马) ====== */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 14px;
  align-items: center;
}

.carousel-viewport {
  perspective: 1400px;
  perspective-origin: center center;
  overflow: hidden;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.is-dragging .carousel-viewport {
  cursor: grabbing;
}

.carousel-track {
  position: relative;
  transform-style: preserve-3d;
  height: 100%;
}

/* ---- Slide 绝对定位叠放 ---- */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition:
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    opacity   0.45s ease,
    filter    0.45s ease;
  will-change: transform, opacity;
  pointer-events: none;
  backface-visibility: hidden;
}

/* ---- 位置 0：居中 ---- */
.cf-pos-0 {
  transform: translateX(0) translateZ(0) rotateY(0) scale(1);
  opacity: 1;
  filter: none;
  z-index: 5;
  pointer-events: auto;
}

/* ---- 位置 ±1：邻居 ---- */
.cf-pos-1,
.cf-pos-m1 {
  opacity: 0.85;
  filter: brightness(0.96);
}

.cf-pos-1 {
  transform: translateX(30%) translateZ(-100px) rotateY(-25deg) scale(0.72);
  z-index: 4;
}
.cf-pos-m1 {
  transform: translateX(-30%) translateZ(-100px) rotateY(25deg) scale(0.72);
  z-index: 3;
}

/* ---- 位置 ±2：远端 ---- */
.cf-pos-2,
.cf-pos-m2 {
  opacity: 0.55;
  filter: brightness(0.92);
}
.cf-pos-2 {
  transform: translateX(55%) translateZ(-200px) rotateY(-35deg) scale(0.55);
  z-index: 2;
}
.cf-pos-m2 {
  transform: translateX(-55%) translateZ(-200px) rotateY(35deg) scale(0.55);
  z-index: 1;
}

/* ---- 其余隐藏 ---- */
.cf-pos-hide {
  transform: translateX(78%) translateZ(-280px) rotateY(-42deg) scale(0.35);
  opacity: 0;
  z-index: 0;
}

/* ====== 企业资质轮播 ====== */
#licenseCarousel .carousel-track,
.license-carousel .carousel-track {
  height: 470px;
}

.license-carousel .carousel-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 6px;
  padding: 12px;
}

.license-carousel .carousel-slide img {
  max-height: 430px;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  background: var(--white);
  padding: 14px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.07),
    0 8px 24px rgba(0,0,0,0.12),
    0 16px 40px rgba(0,0,0,0.06);
  border: 1px solid #e2e6ec;
  border-radius: 4px;
}

/* ====== 左右箭头按钮（grid 项，自然居中） ====== */
.carousel-arrow {
  grid-row: 1;
  z-index: 20;
  justify-self: center;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d8dde6;
  background: rgba(255, 255, 255, 0.92);
  color: #6b7a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.carousel-arrow:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(12, 90, 147, 0.18);
}

.carousel-arrow:active {
  transform: scale(0.94);
}

.carousel-arrow:focus,
.carousel-arrow:focus-visible {
  outline: none;
}

.carousel-arrow-prev { grid-column: 1; }
.carousel-arrow-next { grid-column: 3; }

/* 让 viewport 占中间整列 */
.carousel-viewport {
  grid-column: 2;
  grid-row: 1;
}

/* ====== 线条式指示器 ====== */
.carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: #c8d4e2;
  cursor: pointer;
  padding: 0;
  transition: width 0.35s ease, background 0.35s ease;
}

.carousel-dot.active {
  width: 40px;
  background: var(--primary);
}

.carousel-dot:hover:not(.active) {
  background: #9db4cf;
}

/* ====== 服务内容 + 业务案例（双栏布局） ====== */
.sc-pair-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1200px;
  min-height: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #dce6f2;
  box-shadow: 0 6px 32px rgba(0,0,0,0.07);
  overflow: hidden;
}

/* 左栏：服务列表 */
.sc-left-col {
  flex: 0 0 34%;
  padding: 48px 36px;
}

/* 右栏：案例 */
.sc-right-col {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}

/* 栏目标题 */
.sc-col-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

/* 中间分隔线 */
.sc-divider {
  flex: 0 0 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(31,79,138,0.18) 10%, rgba(31,79,138,0.22) 90%, transparent 100%);
  margin: 48px 0;
}

/* 服务列表 */
.sc-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-service-list li {
  padding: 13px 18px 13px 30px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  background: rgba(31,79,138,0.04);
  transition: background 0.3s, color 0.3s;
  position: relative;
}

.sc-service-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.sc-service-list li:hover {
  background: rgba(31,79,138,0.1);
  color: var(--primary);
}

/* 案例列表 */
.sc-case-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 案例卡片 */
.sc-case {
  padding: 13px 18px 13px 30px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: 8px;
  background: rgba(31,79,138,0.04);
  border: 1px solid #dce6f2;
  border-left: 3px solid var(--primary);
  position: relative;
  transition: background 0.3s, color 0.3s;
}

.sc-case::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.sc-case:hover {
  background: rgba(31,79,138,0.1);
  color: var(--primary);
}

.sc-case h5 {
  display: none;
}

.sc-case p {
  display: none;
}

/* ====== 企业文化 — 两个平面轮播图 ====== */
.culture-gallery {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.culture-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---- 平面轮播 ---- */
.flat-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.flat-carousel.dragging {
  cursor: grabbing;
}

.flat-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flat-track.no-transition {
  transition: none;
}

.flat-slide {
  flex: 0 0 100%;
  overflow: hidden;
}

.flat-slide img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* ---- 指示点 ---- */
.flat-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.flat-dot {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #c4cdd9;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.flat-dot.active {
  width: 34px;
  background: var(--primary);
}

/* ====== 联系我们（浅色背景卡片） ====== */
.contact-card {
  margin-top: 56px;
  padding: 38px 44px;
  background: var(--primary-soft);
  border: 1px solid #dce6f2;
  border-radius: 10px;
  text-align: left;
  position: relative;
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.contact-info p {
  margin: 8px 0;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 3px;
}

/* ====== 页脚 ====== */
.site-footer {
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.footer-inner {
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .sc-pair-list {
    flex-direction: column;
  }

  .sc-left-col {
    flex: 1 1 auto;
  }

  .sc-divider {
    flex: 0 0 1px;
    margin: 0 24px;
  }

  .culture-gallery {
    flex-direction: column;
    gap: 24px;
  }

  /* Coverflow 侧边偏移（平板） */
  .cf-pos-m1 { transform: translateX(-22%) translateZ(-85px) rotateY(22deg) scale(0.70); }
  .cf-pos-1  { transform: translateX(22%) translateZ(-85px) rotateY(-22deg) scale(0.70); }
  .cf-pos-m2 { transform: translateX(-44%) translateZ(-170px) rotateY(30deg) scale(0.52); }
  .cf-pos-2  { transform: translateX(44%) translateZ(-170px) rotateY(-30deg) scale(0.52); }
}

@media (max-width: 860px) {
  .about-intro-content {
    padding: 32px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    align-items: flex-start;
    padding: 12px 0;
    flex-direction: column;
    min-height: auto;
  }

  .nav {
    width: 100%;
  }

  .brand h1 {
    white-space: normal;
    font-size: 0.98rem;
  }

  .license-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    height: 60vh;
  }

  .section,
  .page-section {
    padding: 44px 0;
  }

  .section-title h3,
  .contact-card h3 {
    font-size: 1.5rem;
  }

  .contact-card {
    padding: 26px 22px;
  }

  .about-intro-content {
    padding: 24px 18px;
  }

  .sc-left-col,
  .sc-right-col {
    padding: 20px 16px;
  }

  .sc-col-title {
    font-size: 1.0rem;
  }

  .sc-service-list li {
    font-size: 0.9rem;
    padding: 8px 12px 8px 22px;
  }

  .sc-service-list li::before {
    left: 10px;
    width: 4px;
    height: 4px;
  }

  .sc-case {
    padding: 8px 12px 8px 22px;
    font-size: 0.9rem;
  }

  .sc-case::before {
    left: 10px;
    width: 4px;
    height: 4px;
  }

  .flat-carousel {
    border-radius: 8px;
  }

  /* 移动端 Coverflow */
  #licenseCarousel .carousel-track,
  .license-carousel .carousel-track { height: 340px; }
  #licenseCarousel .carousel-slide img,
  .license-carousel .carousel-slide img { max-height: 300px; max-width: 92%; padding: 6px; }
  .cf-pos-m1 { transform: translateX(-20%) translateZ(-75px) rotateY(20deg) scale(0.68); }
  .cf-pos-1  { transform: translateX(20%) translateZ(-75px) rotateY(-20deg) scale(0.68); }
  .cf-pos-m2 { transform: translateX(-40%) translateZ(-150px) rotateY(28deg) scale(0.48); }
  .cf-pos-2  { transform: translateX(40%) translateZ(-150px) rotateY(-28deg) scale(0.48); }

  /* 移动端箭头更小 */
  .carousel { grid-template-columns: 32px 1fr 32px; }
  .carousel-arrow { width: 32px; height: 32px; }
}
