﻿:root {
  --line: #30d8f6;
  --line-soft: rgba(93, 220, 255, 0.35);
  --text: #ffffff;
  --accent: #f8dc96;
  --nav: transparent;
  --nav-text: #333333;
  --nav-active: #425EA6;
}
* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: #061b36;
}

a { color: inherit; text-decoration: none; }

.site {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.page-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  position: relative;
}

.header > .page-shell {
  height: 100%;
}

.hero-shell {
  position: relative;
  min-height: 100%;
  height: 100%;
  z-index: 1;
}

.container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header {
  height: 52px;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  background: #ffffff;
  color: var(--nav-text);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav {
  height: 52px;
  position: relative;
}

.brand-mini {
  position: absolute;
  left: 118px;
  top: 4px;
  width: 190px;
  height: 45px;
  display: block;
  background: url("logo.png") center/contain no-repeat;
}

.nav-links {
  position: absolute;
  left: 607px;
  top: 16px;
  display: flex;
  gap: 150px;
  align-items: center;
}

.nav-links a {
  width: 32px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: #333333;
}

.nav-links a.active {
  width: 40px;
  height: 24px;
  font-weight: 800;
  font-size: 20px;
  color: #425EA6;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 40px;
  height: 4px;
  background: #425EA6;
}

.menu-btn {
  display: none;
  border: 1px solid #c9c9c9;
  background: #ffffff;
  color: #333333;
  border-radius: 8px;
  padding: 8px 12px;
}

.hero {
  width: 100%;
  min-height: max(calc(100vh - 52px), 1080px);
  height: max(calc(100vh - 52px), 1080px);
  margin-top: 0;
  position: relative;
  overflow: hidden;
  padding: 28px 24px 26px;
  background:
    linear-gradient(180deg, rgba(4, 20, 46, 0.22) 0%, rgba(5, 24, 52, 0.42) 100%),
    url("bg-main.jpg") center center / 100% 100% no-repeat;
  background-color: #071d3d;
  background-size: 100% 100%;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 18px 22px;
  border: 2px solid var(--line-soft);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(77, 214, 255, 0.14) 0%, rgba(77, 214, 255, 0.02) 40%, rgba(77, 214, 255, 0.14) 100%),
    repeating-linear-gradient(90deg, rgba(77, 214, 255, 0.22) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(77, 214, 255, 0.14) 0 1px, transparent 1px 62px);
  background-size: 220% 100%, 192px 100%, 100% 124px;
  background-position: 0% 0, 0 0, 0 0;
  animation: heroLineFlow 11s linear infinite;
}

.hero::after {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(220px, 50vw);
  height: 16px;
  border: 2px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: 6px;
  opacity: 0.75;
}

.brand {
  margin: 30px 0 12px 130px;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: 1px;
}

.stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  padding: 0 30px;
  align-items: start;
}

.visual-box {
  position: relative;
  display: grid;
  justify-items: center;
}

.home-visual-box {
  padding-top: 24px;
}

.home-visual-image {
  width: min(100%, 860px);
  height: auto;
  display: block;
}

body[data-page="index"] .hero {
  padding: 0;
}

body[data-page="index"] .brand {
  display: none;
}

body[data-page="index"] .stage {
  position: relative;
  display: block;
  height: 100%;
  padding: 0;
}

body[data-page="index"] .home-visual-box {
  position: absolute;
  left: 133px;
  top: 204px;
  padding-top: 0;
  opacity: 0;
  transform: translateX(-180px) scale(0.92);
  will-change: transform, opacity;
  animation: homeCardLeft 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

body[data-page="index"] .home-visual-image {
  width: 593px;
  height: 475px;
  object-fit: contain;
}

body[data-page="index"] .home-info {
  position: absolute;
  left: 730px;
  top: 198px;
  width: 443px;
  height: 281px;
  padding: 0;
  opacity: 0;
  transform: translateX(180px) scale(0.92);
  will-change: transform, opacity;
  animation: homeCardRight 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

body[data-page="index"] .home-right-image {
  width: 443px;
  height: 281px;
  display: block;
  border: none;
}

body[data-page="index"] .home-contact-btn {
  position: absolute;
  left: 843px;
  top: 518px;
  width: 216px;
  height: 48px;
  border-radius: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: #6f4824;
  background: linear-gradient(151.18deg, #FFF7CB 2.38%, #FFC977 100.41%);
}

body[data-page="services"] .brand {
  display: none;
}

body[data-page="services"] .hero {
  padding: 0;
  min-height: max(calc(100vh - 52px), 1080px);
  height: max(calc(100vh - 52px), 1080px);
}

.product-stage {
  position: relative;
  z-index: 2;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.product-tabs {
  justify-content: center;
  gap: 36px;
  margin: 0 auto 30px;
}

body[data-page="services"] .tab {
  min-width: 220px;
  height: 50px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  background: linear-gradient(180deg, #f1f1f1, #e5e5e5);
}

body[data-page="services"] .tab.active {
  color: #63421f;
  background: linear-gradient(180deg, #f7e8bd, var(--accent));
}

.product-cards {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 30px;
  align-items: start;
  justify-items: center;
}

.product-card {
  width: 100%;
}

.product-card-left {
  max-width: 560px;
}

.product-card-right {
  max-width: 586px;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
}
.imac {
  width: min(100%, 520px);
  background: linear-gradient(180deg, #dcdcdc, #cfcfcf 62%, #dfdfdf);
  border-radius: 18px 18px 24px 24px;
  padding: 16px 12px 62px;
  position: relative;
}

.imac::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -42px;
  width: 98px;
  height: 42px;
  background: #d8d8d8;
}

.imac::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -58px;
  width: 210px;
  height: 16px;
  background: #ebebeb;
}

.screen {
  border-radius: 6px;
  height: clamp(180px, 20vw, 285px);
  background:
    linear-gradient(#f3f3f3 30px, #dedede 30px 31px, transparent 31px),
    repeating-linear-gradient(0deg, #ffffff 0 20px, #f4f9ff 20px 40px),
    repeating-linear-gradient(90deg, rgba(80, 130, 200, 0.15) 0 1px, transparent 1px 72px);
}

.screen.screen-cloud {
  background:
    linear-gradient(#ececec 30px, #d4d4d4 30px 31px, transparent 31px),
    linear-gradient(180deg, #f5f5f5, #e5e5e5);
}

.phone-wrap {
  position: absolute;
  right: 14px;
  bottom: -8px;
  display: flex;
  gap: 14px;
}

.phone-group {
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.phone {
  width: clamp(64px, 7.5vw, 100px);
  height: clamp(138px, 15.5vw, 204px);
  border-radius: 18px;
  border: 2px solid #1d1d1d;
  background: #f4f4f4;
  overflow: hidden;
}

.phone::before {
  content: "";
  display: block;
  margin: 8px auto;
  width: 40%;
  height: 6px;
  border-radius: 12px;
  background: #121212;
}

.phone .app {
  margin: 8px;
  height: calc(100% - 26px);
  border-radius: 6px;
  background: linear-gradient(180deg, #ff5e81, #ffc14c 35%, #6cb5ff 70%, #fff 100%);
}

.app-tone-2 {
  background: linear-gradient(180deg, #efefef, #dddddd 45%, #fefefe);
}

.app-tone-3 {
  background: linear-gradient(180deg, #8f8f8f, #6f6f6f);
}

.info { padding-top: 8px; }

.ribbon {
  width: fit-content;
  max-width: 100%;
  background: linear-gradient(90deg, #0f4f7e, #2f88c7 62%, #64bff0);
  border: 1px solid #7dd6ff;
  padding: 8px 14px;
  font-size: clamp(16px, 1.6vw, 32px);
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-panel {
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(10, 43, 84, 0.82), rgba(8, 31, 62, 0.8)),
    repeating-linear-gradient(0deg, rgba(73, 154, 224, 0.05) 0 1px, transparent 1px 24px);
  padding: clamp(14px, 2vw, 26px);
  min-height: 260px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  font-size: clamp(16px, 1.7vw, 30px);
  font-weight: 700;
}

.feature-list {
  font-size: clamp(15px, 1.55vw, 28px);
  font-weight: 700;
  text-align: center;
  line-height: 1.68;
}

.lead-note {
  margin: 6px 0 10px;
  text-align: left;
  font-size: clamp(14px, 1.25vw, 20px);
  line-height: 1.65;
}

.cta {
  margin: 20px auto 0;
  width: clamp(148px, 24vw, 250px);
  text-align: center;
  background: linear-gradient(180deg, #f7e8bd, var(--accent));
  color: #684723;
  font-size: clamp(18px, 2vw, 34px);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 0;
  display: block;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
}

.tab {
  border: 0;
  min-width: 170px;
  font-size: clamp(14px, 1.5vw, 24px);
  font-weight: 700;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f1f1f1, #e5e5e5);
  color: #eaf4ff;
  cursor: pointer;
  border-radius: 4px;
}

.tab.active {
  background: linear-gradient(180deg, #f7e8bd, var(--accent));
  color: #63421f;
}

.subtitle {
  text-align: center;
  font-size: clamp(16px, 1.6vw, 30px);
  font-weight: 700;
  margin: 10px 0 4px;
}

.footer-space { height: 0; }

@media (max-width: 1000px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
  }

  .brand-mini {
    position: absolute;
    left: 118px;
    top: 4px;
    width: 190px;
    height: 45px;
    display: block;
    background: url("logo.png") center/contain no-repeat;
  }

  .nav-links {
    position: static;
    gap: 28px;
  }

  .nav-links a {
    width: auto;
    height: auto;
    font-size: 16px;
  }

  .nav-links a.active::after {
    width: 24px;
    bottom: -8px;
  }

  .hero {
    padding: 22px 10px 20px;
    min-height: auto;
    height: auto;
  }

  .hero::before { inset: 12px; }

  .stage {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }

  body[data-page="index"] .hero {
    padding: 22px 10px 20px;
  }

  body[data-page="index"] .stage {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
    padding: 0 10px;
  }

  body[data-page="index"] .home-visual-box,
  body[data-page="index"] .home-info {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    transform: none;
    animation: none;
  }

  body[data-page="index"] .home-visual-image {
    width: min(100%, 760px);
    height: auto;
  }

  body[data-page="index"] .home-right-image {
    width: min(100%, 443px);
    height: auto;
  }

  body[data-page="index"] .home-contact-btn {
    position: static;
    width: 216px;
    height: 48px;
    margin: 8px auto 0;
  }

  .info {
    max-width: 760px;
    width: 100%;
    justify-self: center;
  }

  body[data-page="services"] .hero {
    padding: 100px 12px 26px;
  }

  .product-tabs {
    gap: 12px;
    margin-bottom: 18px;
  }

  body[data-page="services"] .tab {
    min-width: 176px;
    height: 46px;
    font-size: 15px;
  }

  .product-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-card-left,
  .product-card-right {
    max-width: min(100%, 760px);
  }
}

@media (max-width: 700px) {
  .hero-shell {
    min-height: auto;
    height: auto;
  }
  .menu-btn {
    display: inline-block;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  body[data-page="services"] .hero {
    padding-top: 84px;
  }

  body[data-page="services"] .tab {
    min-width: 148px;
    height: 42px;
    font-size: 14px;
    padding: 0 10px;
  }


  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 14px;
    justify-content: space-around;
    gap: 10px;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: auto;
    height: auto;
    font-size: 16px;
  }

  .nav-links a.active::after {
    width: 20px;
    bottom: -8px;
  }

  .hero::after {
    width: 120px;
    height: 10px;
    bottom: 10px;
  }

  .brand {
    font-size: clamp(30px, 10vw, 44px);
    margin-top: 16px;
    margin-left: 0;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab { width: 100%; }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .hero::before { inset: 8px; }
  .ribbon { width: 100%; }
  .feature-panel { border-width: 1px; }
  .phone-group { min-height: 220px; }

  .phone-wrap {
    right: 0;
    bottom: -10px;
  }

  .imac::after { width: 150px; }
}

@keyframes heroLineFlow {
  from {
    background-position: 0% 0, 0 0, 0 0;
  }
  to {
    background-position: 220% 0, 192px 0, 0 124px;
  }
}

@keyframes homeCardLeft {
  from {
    opacity: 0;
    transform: translateX(-180px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateX(18px) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes homeCardRight {
  from {
    opacity: 0;
    transform: translateX(180px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateX(-18px) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}



@media (prefers-reduced-motion: reduce) {
    .hero::before {
    animation: none;
  }

  body[data-page="index"] .home-visual-box,
  body[data-page="index"] .home-info {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Services precise desktop layout */
body[data-page="services"] .hero {
  padding: 0;
  min-height: max(calc(100vh - 52px), 1080px);
  height: max(calc(100vh - 52px), 1080px);
}

body[data-page="services"] .product-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

body[data-page="services"] .product-tabs {
  position: absolute;
  left: 196px;
  top: 184px;
  width: 888px;
  height: 48px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  z-index: 6;
}

body[data-page="services"] .product-tabs .tab {
  width: 216px;
  height: 48px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: #333333;
  background: var(--grey, #D4D4D4);
  pointer-events: auto;
}

body[data-page="services"] .product-tabs .tab.active {
  color: #63421f;
  background: linear-gradient(180deg, #f7e8bd, var(--accent));
}

body[data-page="services"] .product-cards {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

body[data-page="services"] .product-card {
  position: absolute;
}

body[data-page="services"] .product-card img {
  width: 100%;
  height: 100%;
  display: block;
}

body[data-page="services"] .product-card-right {
  left: 598px;
  top: 300px;
  width: 566px;
  height: 419px;
  border-radius: 11px;
  border: 2px solid #D9D9D9;
  overflow: hidden;
  background: transparent;
}

body[data-page="services"] .screen-local .product-card-left {
  left: 14px;
  top: 266px;
  width: 593px;
  height: 475px;
}

body[data-page="services"] .screen-app .product-card-left {
  left: 71px;
  top: 382px;
  width: 480px;
  height: 355px;
}

body[data-page="services"] .screen-cloud .product-card-left {
  left: 13px;
  top: 281px;
  width: 594px;
  height: 475px;
}

body[data-page="services"] .screen-app .product-card-right,
body[data-page="services"] .screen-cloud .product-card-right {
  height: 420px;
}

body[data-page="services"] .screen-cloud .product-card-right {
  background: #0F2643;
}

@media (max-width: 1200px) {
  body[data-page="services"] .hero {
    padding: 96px 14px 26px;
    min-height: auto;
    height: auto;
  }

  body[data-page="services"] .product-stage {
    width: min(980px, 100%);
    height: auto;
    margin: 0 auto;
  }

  body[data-page="services"] .product-tabs {
    position: static;
    width: 100%;
    height: auto;
    margin: 0 0 18px;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  body[data-page="services"] .product-tabs .tab {
    width: 216px;
    height: 48px;
    font-size: 17px;
  }

  body[data-page="services"] .product-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
  }

  body[data-page="services"] .product-card,
  body[data-page="services"] .screen-local .product-card-left,
  body[data-page="services"] .screen-app .product-card-left,
  body[data-page="services"] .screen-cloud .product-card-left,
  body[data-page="services"] .product-card-right {
    position: static;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;
    border-width: 2px;
  }

  body[data-page="services"] .product-card img {
    height: auto;
    aspect-ratio: auto;
  }
}

/* Services card switch animation */
body[data-page="services"] .product-card-left.is-swapping {
  animation: homeCardLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

body[data-page="services"] .product-card-right.is-swapping {
  animation: homeCardRight 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="services"] .product-card-left.is-swapping,
  body[data-page="services"] .product-card-right.is-swapping {
    animation: none;
  }
}


/* Home right-card text correction */


/* Contact page redesign */
body[data-page="contact"] .hero {
  padding: 0;
  min-height: max(calc(100vh - 52px), 1080px);
  height: max(calc(100vh - 52px), 1080px);
}

body[data-page="contact"] .contact-stage {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  transform: translateY(-40px);
}

body[data-page="contact"] .contact-ribbon-image {
  position: absolute;
  left: 50%;
  top: 214px;
  transform: translateX(-50%);
  width: 389px;
  height: 66px;
  display: block;
}

body[data-page="contact"] .contact-lead {
  position: absolute;
  width: 832px;
  height: 61px;
  top: 293px;
  left: 224px;
  margin: 0;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 303%;
  letter-spacing: 0;
  text-align: center;
  color: #ffffff;
}

body[data-page="contact"] .contact-card {
  position: absolute;
  width: 740px;
  height: 454px;
  top: 365px;
  left: 270px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  padding: 0;
  box-shadow: none;
}

body[data-page="contact"] .contact-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1200px) {
  body[data-page="contact"] .hero {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    height: auto;
    padding: 96px 14px 26px;
  }

  body[data-page="contact"] .contact-stage {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: none;
  }

  body[data-page="contact"] .contact-ribbon-image,
  body[data-page="contact"] .contact-lead,
  body[data-page="contact"] .contact-card {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }

  body[data-page="contact"] .contact-ribbon-image {
    width: min(389px, 92vw);
    height: auto;
  }

  body[data-page="contact"] .contact-lead {
    width: min(832px, 96%);
    height: auto;
    margin: 0;
    font-size: clamp(16px, 2.4vw, 20px);
    line-height: 1.6;
  }

  body[data-page="contact"] .contact-card {
    width: min(740px, 96vw);
    height: auto;
    aspect-ratio: 740 / 454;
  }
}

@media (max-width: 700px) {
  body[data-page="contact"] .hero {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    height: auto;
    padding: 92px 10px 18px;
  }

  body[data-page="contact"] .contact-stage {
    gap: 12px;
  }

  body[data-page="contact"] .contact-lead {
    font-size: 16px;
    line-height: 1.6;
  }
}

body[data-page="services"] .services-contact-btn {
  position: absolute;
  left: 50%;
  top: 780px;
  transform: translateX(-50%);
  width: 216px;
  height: 48px;
  border: 0;
  border-radius: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: #6f4824;
  background: linear-gradient(151.18deg, #FFF7CB 2.38%, #FFC977 100.41%);
  z-index: 6;
}

@media (max-width: 1200px) {
  body[data-page="services"] .services-contact-btn {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 14px auto 0;
  }
}

/* Tablet adaptation */
@media (min-width: 701px) and (max-width: 1200px) {
  .hero-shell {
    min-height: auto;
    height: auto;
  }
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
  }

  .brand-mini {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 170px;
    height: 40px;
    flex: 0 0 auto;
  }

  .nav-links {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    gap: 14px;
  }

  body[data-page="index"] .hero {
    padding: 22px 10px 20px;
    min-height: auto;
    height: auto;
  }

  body[data-page="index"] .stage {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
    padding: 0 10px;
  }

  body[data-page="index"] .home-visual-box,
  body[data-page="index"] .home-info {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    transform: none;
    animation: none;
  }

  body[data-page="index"] .home-visual-image {
    width: min(100%, 760px);
    height: auto;
  }

  body[data-page="index"] .home-right-image {
    width: min(100%, 443px);
    height: auto;
  }

  body[data-page="index"] .home-contact-btn {
    position: static;
    width: 216px;
    height: 48px;
    margin: 8px auto 0;
  }
}

/* Mobile header alignment */
@media (max-width: 700px) {
  .brand-mini {
    position: absolute;
    left: 12px;
    top: 8px;
    transform: none;
    width: 132px;
    height: 32px;
  }
}
/* Mobile: no menu button, show nav directly */
@media (max-width: 700px) {
  .hero-shell {
    min-height: auto;
    height: auto;
  }

  .header {
    height: auto;
  }

  .nav {
    height: auto;
    min-height: 52px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
  }

  .menu-btn {
    display: none !important;
  }

  .brand-mini {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 132px;
    height: 32px;
  }

  .nav-links,
  .nav-links.open {
    display: flex !important;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 24px;
    width: auto;
  }

  .nav-links a {
    width: auto;
    height: auto;
    font-size: 14px;
    color: #333333;
  }

  .nav-links a.active {
    font-size: 16px;
    color: #425EA6;
  }

  .nav-links a.active::after {
    width: 20px;
    bottom: -5px;
  }
}



/* Mobile contact hotfix: ensure banner is visible */
@media (max-width: 700px) {
  body[data-page="contact"] .hero {
    min-height: auto;
    height: auto;
    padding: 92px 10px 18px;
  }

  body[data-page="contact"] .contact-stage {
    position: relative;
    width: 100%;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  body[data-page="contact"] .contact-ribbon-image {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: min(389px, 92vw);
    height: auto;
    display: block;
  }

  body[data-page="contact"] .contact-lead {
    position: static;
    left: auto;
    top: auto;
    width: min(832px, 96%);
    height: auto;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
  }

  body[data-page="contact"] .contact-card {
    position: static;
    left: auto;
    top: auto;
    width: min(740px, 96vw);
    height: auto;
    aspect-ratio: 740 / 454;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
  }

  body[data-page="contact"] .contact-banner {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}












/* Final mobile background coverage fix */
@media (max-width: 1200px) {
  .hero {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    height: auto;
  }

  .hero-shell {
    min-height: 100%;
    height: auto;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    height: auto;
  }

  .hero-shell {
    min-height: 100%;
    height: auto;
  }

  body[data-page="index"] .hero,
  body[data-page="services"] .hero,
  body[data-page="contact"] .hero {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    height: auto;
  }
}



/* Final card radius restoration */
body[data-page="index"] .home-info {
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 38, 67, 0.24);
}

body[data-page="index"] .home-right-image {
  border-radius: 12px;
}

body[data-page="contact"] .contact-card {
  border-radius: 20px;
  overflow: hidden;
  background: #d4d4d4;
}

body[data-page="contact"] .contact-banner {
  border-radius: 20px;
}

@media (max-width: 1200px) {
  body[data-page="contact"] .contact-card {
    border-radius: 18px;
  }

  body[data-page="contact"] .contact-banner {
    border-radius: 18px;
  }
}

/* Final mobile center fix for services CTA */
@media (max-width: 700px) {
  body[data-page="services"] .services-contact-btn {
    display: flex;
    width: 216px;
    margin: 14px auto 0 !important;
  }
}

body.zoom-open {
  overflow: hidden;
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(3, 16, 33, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 2000;
}

.image-zoom-overlay.open {
  opacity: 1;
  visibility: visible;
}

.image-zoom-preview {
  max-width: min(92vw, 1500px);
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
}

.image-zoom-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 1201px) and (hover: hover) and (pointer: fine) {
  .home-visual-image.zoomable-image,
  body[data-page="services"] .product-card-left .zoomable-image {
    cursor: zoom-in;
  }

  .home-visual-image.zoomable-image:focus-visible,
  body[data-page="services"] .product-card-left .zoomable-image:focus-visible {
    outline: 2px solid rgba(94, 219, 255, 0.9);
    outline-offset: 6px;
  }
}


