/* Ship front-end visual system: maritime engineering dashboard */
:root {
  --ship-ink: #102b3f;
  --ship-deep: #0b263b;
  --ship-blue: #176e9e;
  --ship-cyan: #46bfd2;
  --ship-mist: #f2f7f9;
  --ship-line: #d9e6eb;
  --ship-muted: #607687;
  --hfet-green: #01B301;
  --hfet-blue: #2196F3;
  --hfet-orange: #FF9800;
  --hfet-purple: #9C27B0;
}

body.ship-front {
  background: var(--ship-mist);
  color: var(--ship-ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  line-height: 1.7;
}

body.ship-front a {
  color: var(--ship-blue);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body.ship-front a:hover,
body.ship-front a:focus-visible {
  color: #278bf2;
  text-decoration: none;
}

body.ship-front .sticky-wrapper {
  position: absolute;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 16px 0;
  background: rgba(8, 35, 54, .92);
  border-bottom: 1px solid rgba(140, 219, 232, .22);
}

body.ship-front #header {
  background: transparent;
}

body.ship-front #header #logo h1 {
  margin: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
}

body.ship-front #header #logo img {
  max-width: 250px;
  max-height: 46px;
  object-fit: contain;
}

body.ship-front .sticky-wrapper .white_logo {
  display: block !important;
}

body.ship-front .is-sticky .sticky-wrapper,
body.ship-front .is-sticky #header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--ship-line);
  box-shadow: 0 8px 24px rgba(16, 43, 63, .08);
}

body.ship-front .is-sticky .white_logo {
  display: none !important;
}

body.ship-front .is-sticky .black_logo {
  display: block !important;
}

body.ship-front .nav-menu > li > a {
  color: #e9f5f8;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 12px 14px;
}

body.ship-front .nav-menu > li:hover > a,
body.ship-front .nav-menu > li:focus-within > a,
body.ship-front .nav-menu > li.menu-active > a {
  color: #8fe0e8;
}

body.ship-front .nav-menu > li.menu-active > a::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 7px;
  background: var(--ship-cyan);
  border-radius: 2px;
}

body.ship-front .is-sticky .nav-menu > li > a {
  color: var(--ship-ink);
}

body.ship-front .is-sticky .nav-menu > li:hover > a,
body.ship-front .is-sticky .nav-menu > li:focus-within > a,
body.ship-front .is-sticky .nav-menu > li.menu-active > a {
  color: #278bf2;
}

body.ship-front .nav-menu ul {
  border-top: 3px solid var(--ship-cyan);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(16, 43, 63, .18);
}

body.ship-front .nav-menu ul li a:hover,
body.ship-front .nav-menu ul li a:focus-visible {
  color: #278bf2;
  background: #f2f8fb;
}

body.ship-front #hero {
  min-height: 580px;
  padding: 160px 0 100px;
  background:
    radial-gradient(circle at 78% 38%, rgba(70, 191, 210, .2), transparent 28%),
    linear-gradient(125deg, #081f33 0%, #0d3b58 56%, #0f6b83 100%);
  overflow: hidden;
}

body.ship-front #hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image: linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.22) 48.2% 48.45%, transparent 48.65%), linear-gradient(30deg, transparent 0 72%, rgba(255,255,255,.16) 72.2% 72.45%, transparent 72.65%);
}

body.ship-front #hero .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7%;
  min-height: 390px;
}

body.ship-front #hero .hero-content {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 2;
  flex: 0 0 48%;
  display: block;
  text-align: left;
}

body.ship-front #hero .hero-content::before {
  content: "船舶机舱 · 虚拟实训";
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(143, 224, 232, .55);
  border-radius: 999px;
  color: #b7edf2;
  font-size: 13px;
  letter-spacing: .12em;
}

body.ship-front #hero .hero-content h2 {
  max-width: 650px;
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.22;
  letter-spacing: .03em;
  font-weight: 700;
}

body.ship-front #hero .hero-content h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 22px;
  background: var(--ship-cyan);
  border-radius: 4px;
}

body.ship-front #hero .hero-banner {
  float: none;
  width: auto;
  flex: 1 1 52%;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(190, 239, 244, .45);
  border-radius: 24px;
  background: rgba(233, 250, 252, .12);
  box-shadow: 0 24px 50px rgba(0, 12, 25, .24);
  backdrop-filter: blur(4px);
}

body.ship-front #hero .hero-banner img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: contain;
  border-radius: 14px;
  mix-blend-mode: screen;
}

body.ship-front #hero .hero-content .btn-banner {
  margin: 0;
  padding: 12px 30px;
  border: 1px solid var(--ship-cyan);
  border-radius: 999px;
  background: var(--ship-cyan);
  color: #082b3d;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(70, 191, 210, .25);
}

body.ship-front #hero .hero-content .btn-banner:hover,
body.ship-front #hero .hero-content .btn-banner:focus-visible {
  border-color: #fff;
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

body.ship-front #main {
  background: var(--ship-mist);
}

body.ship-front #main > section {
  position: relative;
}

body.ship-front #about,
body.ship-front #team,
body.ship-front #clients,
body.ship-front #testimonials {
  padding: 78px 0;
}

body.ship-front #about {
  background: #fff;
}

body.ship-front .section-header {
  margin-bottom: 38px;
}

body.ship-front .section-header h2 {
  margin-bottom: 0;
  color: var(--ship-ink);
  font-size: 30px;
  letter-spacing: .05em;
  text-transform: none;
}

body.ship-front .section-header h2::before {
  width: 46px;
  height: 3px;
  border: 0;
  background: var(--ship-cyan);
}

body.ship-front #about .about-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--ship-line);
  border-radius: 18px;
  background: #f7fbfc;
}

body.ship-front #about .about-img img {
  max-height: 230px;
  margin: 0;
}

body.ship-front #about .content {
  display: flex;
  align-items: center;
}

body.ship-front #about .content p {
  margin: 0;
  color: var(--ship-muted);
  font-size: 16px;
  line-height: 2;
}

body.ship-front #team {
  background: #edf4f7;
}

body.ship-front #team .member {
  overflow: hidden;
  border: 1px solid var(--ship-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 43, 63, .06);
}

body.ship-front #team .member .pic img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

body.ship-front #team .member .details {
  padding: 14px;
}

body.ship-front #team .member .details h4 {
  color: var(--ship-ink);
}

body.ship-front #team .member .details span {
  color: var(--ship-muted);
}

body.ship-front #clients {
  background: #fff;
}

body.ship-front #clients .clients-carousel {
  padding: 18px;
  /*border: 1px solid var(--ship-line);*/
  /*border-radius: 16px;*/
  /*background: #f7fbfc;*/
}

body.ship-front #clients .clients-carousel img {
  max-height: 170px;
  opacity: .78;
  filter: grayscale(.25);
}

body.ship-front #clients .clients-carousel img:hover {
  opacity: 1;
  filter: none;
}

body.ship-front #testimonials {
  background: #edf4f7;
}

body.ship-front #call-to-action {
  background: linear-gradient(110deg, #0b2a40, #145d79);
}

body.ship-front #call-to-action .cta-title,
body.ship-front #call-to-action p {
  color: #fff;
}

body.ship-front #innerBanner {
  padding: 158px 0 78px;
  background:
    linear-gradient(120deg, rgba(8, 31, 49, .96), rgba(16, 101, 128, .9)),
    url(../img/11.png) center 42% / cover no-repeat;
  text-align: left;
}

body.ship-front #innerBanner .inner-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

body.ship-front #innerBanner h2 {
  text-align: left;
}

body.ship-front #innerBanner h2 span {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: .05em;
}

body.ship-front #innerBanner h2.m-auto {
  max-width: 600px;
  margin-left: 0 !important;
  color: #cae9ee;
  line-height: 1.8;
}

body.ship-front #services {
  padding: 78px 0 96px;
  background: var(--ship-mist);
}

body.ship-front #services .box {
  min-height: 400px;
  padding: 18px 18px 26px;
  border: 1px solid var(--ship-line);
  border-top: 4px solid var(--ship-cyan);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 43, 63, .08);
}

body.ship-front #services .box:hover {
  border-top-color: #278bf2;
  box-shadow: 0 18px 34px rgba(16, 43, 63, .14);
  transform: translateY(-6px);
}

body.ship-front #services .box .icon {
  /*height: 205px;*/
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3f8fa;
}

body.ship-front #services .box .icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

body.ship-front #services .box h4 {
  width: 100%;
  margin: 20px 0 0;
  color: var(--ship-ink);
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

body.ship-front #services .box a:hover h4,
body.ship-front #services .box a:focus-visible h4 {
  color: #278bf2;
}

body.ship-front #test {
  padding: 78px 0;
  background: #fff;
}

body.ship-front #test .test {
  overflow: hidden;
  border: 1px solid var(--ship-line);
  border-radius: 18px;
  background: #f8fbfc;
  box-shadow: 0 12px 28px rgba(16, 43, 63, .08);
}

body.ship-front #test .test_content_title {
  padding: 20px 26px;
  background: #e7f3f6;
  border-bottom: 1px solid var(--ship-line);
}

body.ship-front #test .test_content_title h2 {
  color: var(--ship-ink);
}

body.ship-front #test .test_content_nr > ul {
  padding: 26px;
}

body.ship-front #test .test_content_nr > ul > li {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--ship-line);
  border-radius: 12px;
  background: #fff;
}

body.ship-front #test .test_content_nr_tt {
  color: var(--ship-ink);
  font-weight: 600;
}

body.ship-front #test .test_content_nr_tt i {
  background: var(--ship-cyan);
  color: #073044;
}

body.ship-front #test .option label:hover,
body.ship-front #test .option label:focus-within {
  color: #278bf2;
}

body.ship-front #test .theme-button,
body.ship-front #contact .btn1 {
  border: 0;
  border-radius: 999px;
  background: var(--ship-blue);
  color: #fff;
  transition: .2s ease;
}

body.ship-front #test .theme-button:hover,
body.ship-front #test .theme-button:focus-visible,
body.ship-front #contact .btn1:hover,
body.ship-front #contact .btn1:focus-visible {
  background: #278bf2;
  color: #fff;
  transform: translateY(-2px);
}

body.ship-front #contact {
  padding: 78px 0 96px;
  background: #edf4f7;
}

body.ship-front #contact .contact-left,
body.ship-front #contact .contact-right {
  padding: 26px;
  border: 1px solid var(--ship-line);
  border-radius: 16px;
  background: #fff;
}

body.ship-front #contact .contact-left h3 {
  color: var(--ship-ink);
}

body.ship-front #contact .contact-left p,
body.ship-front #contact .contact-right p {
  color: var(--ship-muted);
}

body.ship-front #contact textarea {
  min-height: 170px;
  border: 1px solid var(--ship-line);
  border-radius: 12px;
  background: #f8fbfc;
}

body.ship-front #contact textarea:focus {
  border-color: #278bf2;
  box-shadow: 0 0 0 3px rgba(39, 139, 242, .12);
}

body.ship-front #footer {
  background: #081f33;
  padding: 0 0 30px;
}

body.ship-front #footer .copyright {
  padding-top: 28px;
  color: #b8ccd5;
}

body.ship-front #footer .footer-support-link,
body.ship-front #footer .credits a {
  color: #9cdae3;
}

body.ship-front #footer .footer-support-link:hover,
body.ship-front #footer .footer-support-link:focus-visible,
body.ship-front #footer .credits a:hover,
body.ship-front #footer .credits a:focus-visible {
  color: #278bf2;
  text-decoration: underline;
}

body.ship-front .back-to-top {
  background: var(--ship-cyan);
  color: #073044;
}

body.ship-front .back-to-top:hover,
body.ship-front .back-to-top:focus-visible {
  background: #278bf2;
  color: #fff;
}

@media (max-width: 991px) {
  body.ship-front #hero .container {
    display: block;
  }
  body.ship-front #hero .hero-content {
    margin-bottom: 42px;
  }
  body.ship-front #hero .hero-banner {
    width: 100%;
  }
}

@media (max-width: 767px) {
  body.ship-front .sticky-wrapper {
    padding: 10px 0;
  }
  body.ship-front #hero {
    min-height: auto;
    padding: 128px 0 68px;
  }
  body.ship-front #hero .hero-banner img {
    height: 230px;
  }
  body.ship-front #innerBanner {
    padding: 126px 0 54px;
  }
  body.ship-front #innerBanner h2 span {
    font-size: 32px;
  }
}

/* 修复导航栏父容器高度塌陷，确保 Sticky 能获取正确高度 */
#header > .container::after {
  content: "";
  display: table;
  clear: both;
}
/* Sticky 外层容器不应额外增加内边距 */
#header-sticky-wrapper {
  padding: 0 !important;
  border: 0 !important;
}


/* 统一导航栏初始状态和 Sticky 状态的高度 */
body.ship-front #header {
  box-sizing: border-box;
  min-height: 97.6px;
}

body.ship-front #header > .container {
  box-sizing: border-box;
  min-height: 97.6px;
}

/* Sticky 容器不额外增加上下内边距 */
body.ship-front .sticky-wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 避免导航栏内部浮动元素导致父容器高度计算异常 */
body.ship-front #header > .container::after {
  content: "";
  display: table;
  clear: both;
}

/* 固定导航栏高度，避免滚动前后发生变化 */
@media (min-width: 992px) {
  body.ship-front #header {
    box-sizing: border-box;
    height: 97.6px !important;
    min-height: 97.6px !important;
    padding: 0 !important;
  }

  body.ship-front #header > .container {
    box-sizing: border-box;
    height: 97.6px !important;
    min-height: 97.6px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.ship-front #header #logo,
  body.ship-front #header #nav-menu-container {
    float: none;
    align-self: center;
  }

  body.ship-front #header #logo h1 {
    height: 48px;
    min-height: 48px;
    margin: 0;
    display: flex;
    align-items: center;
  }

  /* Sticky 外层容器不额外增加高度 */
  body.ship-front #header-sticky-wrapper {
    padding: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
  }
}
