:root {
  --navy: #06284a;
  --navy2: #041e3c;
  --blue: #009fe8;
  --green: #3cae6c;
  --text: #10243d;
  --muted: #607187;
  --light: #f4f9fc;
  --line: #dce9f2;
  --shadow: 0 18px 48px rgba(6, 40, 74, .12);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS Mincho", serif;
  color: var(--text);
  line-height: 1.8;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto
}

/* =========================
  Header
========================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 233, 242, .7)
}

.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.brand img {
  width: 210px;
  height: auto
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy)
}

.site-nav a {
  position: relative
}

.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: .25s
}

.site-nav a:hover::after {
  width: 100%
}

.nav-contact {
  padding: 13px 22px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(6, 40, 74, .18)
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 8px
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 7px 0;
  transition: .25s
}

/* =========================
  Common Components
========================= */
.section {
  padding: 40px 0
}

.section-title {
  text-align: center;
  margin-bottom: 48px
}

.section-title span {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase
}

.section-title h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: .06em
}

.section-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: var(--navy);
  margin: 18px auto 0
}

.section-title.align-left {
  text-align: left;
  margin-bottom: 32px
}

.section-title.align-left h2::after {
  margin-left: 0
}

.section-heading p {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.9
}

.section-heading h2::after {
  display: none
}

.section-heading-line {
  display: block;
  width: 50px;
  height: 2px;
  background: var(--navy);
  margin: 18px auto 0
}

.section-heading-left .section-heading-line {
  margin-left: 0
}

.section-heading-left p,
.company-info-copy .section-title {
  margin-left: 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  padding: 15px 26px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: .03em;
  transition: .25s;
  border: 1px solid transparent
}

.btn::after {
  content: '\203a';
  font-size: 24px;
  line-height: 1;
  margin-left: 16px
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(6, 40, 74, .22)
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #09345f
}

.btn-outline {
  background: rgba(255, 255, 255, .88);
  color: var(--navy);
  border-color: var(--navy)
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 24px rgba(6, 40, 74, .12)
}

.btn-white {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18)
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

.btn.btn-arrow:after {
  content: ' \2192';
}

/* =========================
  General Breadcrumbs (Fixed below header)
========================= */
.breadcrumb-container {
  position: fixed;
  top: 82px; /* Fixed Header height */
  left: 0;
  right: 0;
  padding: 12px 0;
  background: rgba(249, 251, 253, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 233, 242, 0.7);
  z-index: 990;
}

/* Adjust all main content for non-home pages to account for fixed breadcrumb */
body:not(.home) main {
  padding-top: 44px; /* Breadcrumb bar height */
}

/* Adjust heroes to ensure content starts below the fixed breadcrumb */
body:not(.home) .news-detail-hero,
body:not(.home) .founder-story-section,
body:not(.home) .case-hero,
body:not(.home) .recruit-hero {
  padding-top: 136px !important; /* 82(header) + 44(breadcrumb) + buffer */
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #5a6f85;
}

.breadcrumb-list a {
  color: #0b5f9f;
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #abbecb;
}

/* =========================
  Footer
========================= */
.site-footer {
  background: #031b35;
  color: #d8e7f3;
  padding: 52px 0 22px
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px
}

.footer-inner img {
  width: 190px;
  filter: brightness(1.3)
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  padding: 10px 24px;
  border: solid #637385;
  border-width: 0 1px;
}

.footer-links li {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.footer-links li:nth-child(2) {
  min-width: 130px;
}

.footer-links a {
  color: white
}

.copyright {
  text-align: center;
  margin: 34px 0 0;
  color: #7790aa;
  font-size: 12px
}

/* Utilities */
.mb-2 { margin-bottom: 8px; }
.flex { display: flex; }
.items-end { align-items: end; }
.text-center { text-align: center; }
ul { list-style: none; padding-inline-start: 0px; }
.w-full { width: 100%; }
.flex-shrink-0 { flex-shrink: 0 }
.flex-1 { flex: 1; }

/* Pagination */
.pagination {
    margin-top: 60px;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--light);
    border-color: var(--blue);
    color: var(--blue);
}

.pagination .current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
/* =========================
  Contact CTA (Global Section)
========================= */
.contact-cta {
  position: relative;
  padding: 78px 0;
  background: url('../backgrounds/contact-cta-bg.png') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

img.icon {
  transition: 0.3s;
}

img.icon:hover {
  transform: translateY(-4px);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px
}

.contact-inner h2 {
  margin: 0 0 14px;
  font-size: 34px;
  letter-spacing: .05em
}

.contact-inner p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-weight: 600
}

@media (max-width: 1023px) {
  .contact-inner {
    flex-direction: column;
    text-align: center;
  }
}
/* =========================
  Story / Contact Button (Global)
========================= */
.btn-story {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  padding: 14px 28px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  transition: .25s;
  cursor: pointer;
}

.btn-story::after {
  content: '\2192';
  font-size: 20px;
  margin-left: 16px;
  transition: .25s
}

.btn-story:hover {
  background: var(--navy);
  color: #fff
}

.btn-story:hover::after {
  transform: translateX(4px)
}

/* =========================
   Responsive & Mobile Menu
========================= */

/* 汉堡按钮 → ✕ 动画 */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .container {
    width: min(1120px, calc(100% - 40px));
  }

  /* — Header Mobile — */
  .header-inner {
    height: 64px;
  }

  .brand img {
    width: 160px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 1010;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1005;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: transparent;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-contact {
    margin-top: 16px;
    padding: 16px 40px;
    font-size: 16px;
  }

  /* 面包屑 */
  .breadcrumb-container {
    top: 64px;
  }

  body:not(.home) main {
    padding-top: 44px;
  }

  body:not(.home) .news-detail-hero,
  body:not(.home) .founder-story-section,
  body:not(.home) .case-hero,
  body:not(.home) .recruit-hero {
    padding-top: 118px !important;
  }

  /* — Footer Mobile — */
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: none;
    padding: 0;
    gap: 28px 20px;
    width: 100%;
    text-align: center;
  }

  .footer-links li {
    border-bottom: none;
    padding-bottom: 0;
    width: 100%;
    align-items: center;
  }

  .footer-inner > .flex-shrink-0 {
    width: 100%;
    text-align: center;
  }

  .footer-inner .btn-story {
    width: 240px !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto !important;
  }

  /* 区段标题 */
  .section-title h2 {
    font-size: 26px;
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 767px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    height: 56px;
  }

  .brand img {
    width: 140px;
  }

  .site-nav {
    top: 56px;
  }

  .breadcrumb-container {
    top: 56px;
    padding: 10px 0;
  }

  body:not(.home) main {
    padding-top: 38px;
  }

  body:not(.home) .news-detail-hero,
  body:not(.home) .founder-story-section,
  body:not(.home) .case-hero,
  body:not(.home) .recruit-hero {
    padding-top: 104px !important;
  }

  .breadcrumb-list {
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section {
    padding: 36px 0;
  }

  .btn {
    min-width: 0;
    width: 100%;
    padding: 14px 22px;
    font-size: 14px;
  }

  .contact-cta {
    padding: 48px 0;
  }

  .contact-cta .btn {
    width: 240px !important;
    max-width: 100% !important;
  }

  .contact-inner h2 {
    font-size: 24px;
  }

  .contact-inner p {
    font-size: 14px;
  }

  .footer-inner img {
    width: 150px;
    margin: 0 auto;
  }

  .copyright {
    font-size: 11px;
  }

  .site-footer {
    padding: 40px 0 18px;
  }
}
