/* ==========================================================================
   真略科技官网 · 结构层
   Header / Desktop Nav / Mobile Drawer / Footer / Page Hero
   ========================================================================== */

/* --------------------------------------------------------------------------
   跳过导航
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 42, 74, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: background-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 31, 55, 0.97);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  border-radius: var(--radius-sm);
}

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur-1) var(--ease),
    background-color var(--dur-1) var(--ease);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  transition: background-color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.toggle-open,
.toggle-close {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle[aria-expanded="true"] .toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="false"] .toggle-close {
  display: none;
}

/* --------------------------------------------------------------------------
   移动端抽屉
   -------------------------------------------------------------------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  background: rgba(4, 15, 27, 0.58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-2) var(--ease),
    visibility var(--dur-2) var(--ease);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  width: min(380px, 88vw);
  background: var(--navy-950);
  color: #fff;
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.55);
  transform: translateX(102%);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform var(--dur-3) var(--ease),
    visibility var(--dur-3) var(--ease);
}

.drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 80% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 80% 0%, #000 0%, transparent 72%);
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer__head .brand img {
  height: 32px;
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  transition: background-color var(--dur-1) var(--ease);
}

.drawer__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.drawer__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) 8px;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 500;
  transition: color var(--dur-1) var(--ease), padding-left var(--dur-2) var(--ease);
}

.drawer__link:hover {
  color: #fff;
}

.drawer__link.is-active {
  color: #fff;
  padding-left: 6px;
}

.drawer__link.is-active .icon {
  color: var(--cyan);
}

.drawer__link .icon {
  color: rgba(255, 255, 255, 0.32);
}

.drawer__foot {
  position: relative;
  margin-top: auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer__foot .btn {
  margin-bottom: 18px;
}

.drawer__meta {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  line-height: 1.6;
}

.drawer__meta span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.drawer__meta .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   内页页头
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 6vw, 80px) clamp(44px, 5.6vw, 72px);
  background: linear-gradient(150deg, #071c33 0%, #0b2a4a 55%, #0e3a66 100%);
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 111, 255, 0.32) 0%, transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--dur-1) var(--ease);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.92);
}

.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.05rem, 4.2vw, 3.4rem);
  line-height: 1.18;
}

.page-hero .lead {
  margin-top: 18px;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .eyebrow {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 76px) clamp(36px, 4.6vw, 56px);
}

.footer-brand img {
  height: 34px;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand .badge {
  margin-top: 20px;
}

.footer-col h3 {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: color var(--dur-1) var(--ease);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 14px;
  font-size: 14px;
}

.footer-contact > * {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.footer-contact .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--cyan);
  flex: none;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12.5px;
  line-height: 1.65;
}

.footer-bottom__left {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--dur-1) var(--ease);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-icp .icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 52ch;
  }
}

@media (max-width: 767px) {
  .brand img {
    height: 30px;
  }

  .page-hero {
    padding-block: 44px 48px;
  }

  .page-hero::after {
    top: -18%;
    right: -28%;
    width: 420px;
    height: 420px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-block: 48px 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-col--contact {
    grid-column: auto;
  }
}
