:root {
  --ink: #08121d;
  --panel: rgba(4, 15, 28, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7fbff;
  --muted: rgba(247, 251, 255, 0.66);
  --blue: #1688ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #17202a;
  background: #f3f5f8;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, 20.8vw) minmax(580px, 58.4vw) minmax(230px, 20.8vw);
  height: 84px;
  align-items: stretch;
  color: var(--text);
  background: rgba(5, 24, 42, 0.38);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(2px);
}

.brand {
  display: flex;
  height: 84px;
  align-items: center;
  gap: 14px;
  padding-left: clamp(44px, 5.2vw, 96px);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-right {
  justify-content: center;
  padding-left: 0;
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-mark {
  width: 50px;
  height: 50px;
  background:
    linear-gradient(90deg, transparent 0 26%, #fff 26% 38%, transparent 38% 100%),
    repeating-linear-gradient(180deg, #ffffff 0 3px, transparent 3px 7px);
  opacity: 0.86;
  clip-path: polygon(0 0, 74% 0, 100% 50%, 74% 100%, 0 100%, 18% 50%);
}

.brand strong,
.brand em {
  display: block;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand strong {
  font-size: 13px;
  font-weight: 700;
}

.brand em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
}

.header-center {
  display: flex;
  min-height: 84px;
  min-width: 0;
}

.hotline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  width: 100%;
  height: 84px;
  align-items: stretch;
  justify-content: center;
}

.main-nav > a,
.nav-group > a {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 84px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav > a {
  width: 20%;
}

.main-nav > a:last-child,
.nav-group:last-child > a {
  border-right: 1px solid var(--line);
}

.main-nav a:hover,
.main-nav a.active,
.nav-group:hover > a {
  color: #fff;
  background: rgba(22, 136, 255, 0.13);
}

.nav-group {
  position: relative;
  width: 20%;
}

.dropdown {
  position: absolute;
  left: 0;
  top: 84px;
  width: 100%;
  padding: 8px;
  background: rgba(4, 15, 28, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-group:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.dropdown a:hover {
  background: rgba(22, 136, 255, 0.18);
}

#app {
  min-height: 100vh;
  outline: none;
}

.page-shell {
  background: #fff;
}

.page-title {
  display: none;
}

.design-frame {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.design-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--crop-top, -72px);
  user-select: none;
}

.home-stage {
  position: relative;
  background: #020912;
  --slide-crop: clamp(86px, 7.1vw, 136px);
}

.slide-deck {
  position: relative;
  height: min(50.55vw, 100vh);
  min-height: 520px;
  overflow: hidden;
  background: #020912;
}

.slide-deck img {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--slide-crop, 0px));
  width: 100%;
  height: calc(100% + var(--slide-crop, 0px));
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 650ms ease;
}

.slide-deck img.from-home-page {
  height: auto;
  min-height: 100%;
}

.slide-deck img.active {
  opacity: 1;
}

.home-rest .design-shot {
  margin-top: -56.25vw;
  margin-bottom: 0;
}

.footer-contact-mask,
.footer-copyright-mask,
.footer-copyright-text {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.footer-contact-mask {
  left: 18.5vw;
  bottom: 7.2vw;
  width: 25vw;
  height: 7vw;
  background: #202020;
}

.footer-copyright-mask {
  left: 18.3vw;
  bottom: 2.25vw;
  width: 20vw;
  height: 2.8vw;
  background: #202020;
}

.footer-copyright-text {
  left: 18.55vw;
  bottom: 2.9vw;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.page-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 22px 18px;
  background: #101820;
}

.page-switcher a {
  min-width: 106px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 13px;
}

.page-switcher a.active,
.page-switcher a:hover {
  color: #fff;
  border-color: rgba(22, 136, 255, 0.8);
  background: rgba(22, 136, 255, 0.18);
}

.quickbar {
  position: fixed;
  right: 22px;
  top: 42%;
  z-index: 15;
  display: grid;
  width: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.quickbar a,
.quickbar button {
  display: grid;
  width: 52px;
  height: 48px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(22, 136, 255, 0.72);
  font: 11px/1 Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.quickbar a:hover,
.quickbar button:hover {
  background: rgba(22, 136, 255, 0.96);
}

.menu-toggle {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    display: flex;
    justify-content: flex-end;
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
  }

  .brand {
    position: absolute;
    left: 16px;
    height: 64px;
    padding-left: 0;
    border-right: 0;
  }

  .brand-right,
  .hotline-row {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-center {
    display: flex;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: inline-grid;
    width: 44px;
    height: 64px;
    place-items: center;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    background: rgba(4, 15, 28, 0.98);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav > a,
  .nav-group > a {
    width: 100%;
    height: 50px;
    min-width: 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .dropdown {
    position: static;
    display: none;
    width: 100%;
    border-left: 0;
    border-right: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-group:hover .dropdown {
    display: block;
  }

  .slide-deck {
    height: 72vw;
    min-height: 390px;
  }

  .slide-copy {
    left: 26px;
    right: 26px;
    top: 48%;
  }

  .quickbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 10px;
  }

  .brand em {
    font-size: 12px;
  }

  .slide-copy h1 {
    font-size: 34px;
  }

  .slide-copy p {
    font-size: 13px;
  }

  .page-switcher {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .page-switcher a {
    flex: 0 0 auto;
  }
}
