/* =========================================================
   itsv.com V1.2.0 前端体验升级
   ========================================================= */

/* 顶部导航基础增强 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 18, .82);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .5px;
}

.logo span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2ee8ff;
  box-shadow: 0 0 20px rgba(46,232,255,.75);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(236,243,255,.78);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: .2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #2ee8ff;
  background: rgba(46,232,255,.11);
}

/* 移动端三横按钮 */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn i {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: #eaf3ff;
  transition: .25s ease;
}

.mobile-menu-btn.active i:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active i:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active i:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-mask {
  display: none;
}

/* 页面标题背景区，可用于所有一级页面 */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 78% 8%, rgba(46,232,255,.16), transparent 30%),
    radial-gradient(circle at 18% 26%, rgba(255,90,0,.065), transparent 28%),
    linear-gradient(180deg, #07101f 0%, #050812 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .6;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .badge {
  margin-bottom: 16px;
}

.page-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 950;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: rgba(215,229,248,.84);
  font-size: 17px;
  line-height: 1.8;
}

/* 右侧悬浮联系方式 */
.floating-contact {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 850;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.floating-contact-tab {
  width: 42px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 0 0 16px;
  background:
    linear-gradient(180deg, rgba(46,232,255,.28), rgba(46,232,255,.10)),
    rgba(5,8,18,.88);
  border: 1px solid rgba(46,232,255,.32);
  border-right: none;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  cursor: pointer;
}

.floating-contact-tab span {
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  color: #2ee8ff;
  font-weight: 950;
  font-size: 14px;
}

.floating-contact-panel {
  width: 0;
  max-height: 80vh;
  overflow: hidden;
  opacity: 0;
  transform: translateX(8px);
  transition: .28s ease;
  border-radius: 22px 0 0 22px;
  background:
    linear-gradient(135deg, rgba(46,232,255,.075), rgba(255,255,255,.035)),
    rgba(5,8,18,.95);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 90px rgba(0,0,0,.42);
}

.floating-contact:hover .floating-contact-panel,
.floating-contact.active .floating-contact-panel {
  width: 260px;
  opacity: 1;
  transform: translateX(0);
  padding: 22px;
}

.floating-contact-panel h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 20px;
}

.floating-qr-box {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  text-align: center;
}

.floating-qr-box img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: block;
}

.floating-qr-box span {
  color: rgba(236,243,255,.78);
  font-size: 13px;
  font-weight: 800;
}

.floating-contact-list {
  margin-top: 14px;
}

.floating-contact-list p {
  margin: 0 0 12px;
  color: rgba(236,243,255,.78);
  font-size: 14px;
  line-height: 1.55;
}

.floating-contact-list strong {
  color: #fff;
}

.floating-contact-list a {
  color: #2ee8ff;
  text-decoration: none;
  font-weight: 900;
}

/* 占位功能页 */
.placeholder-section {
  padding: 54px 0;
  background: #050812;
}

.placeholder-card {
  max-width: 960px;
  padding: 34px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(46,232,255,.065), rgba(255,255,255,.025)),
    rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.placeholder-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 32px;
}

.placeholder-card p {
  margin: 0 0 18px;
  color: rgba(236,243,255,.82);
  line-height: 1.8;
  font-size: 16px;
}

.placeholder-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: rgba(236,243,255,.78);
  line-height: 1.9;
}

/* 移动端导航 */
@media(max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-menu-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 880;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .mobile-menu-mask.active {
    display: block;
  }

  .nav-menu {
    position: fixed;
    right: 14px;
    top: 76px;
    z-index: 901;
    width: min(320px, calc(100vw - 28px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(46,232,255,.075), rgba(255,255,255,.035)),
      rgba(5,8,18,.96);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 28px 90px rgba(0,0,0,.48);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    min-height: 44px;
    border-radius: 14px;
    padding: 0 14px;
    background: rgba(255,255,255,.035);
  }

  .page-hero {
    padding: 50px 0 34px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero p {
    font-size: 15px;
  }

  .floating-contact {
    top: auto;
    right: 12px;
    bottom: 18px;
    transform: none;
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .floating-contact-tab {
    width: auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border-right: 1px solid rgba(46,232,255,.32);
  }

  .floating-contact-tab span {
    writing-mode: horizontal-tb;
    letter-spacing: 1px;
  }

  .floating-contact-panel {
    margin-bottom: 10px;
    border-radius: 22px;
    width: 0;
  }

  .floating-contact:hover .floating-contact-panel {
    width: 0;
    padding: 0;
    opacity: 0;
  }

  .floating-contact.active .floating-contact-panel {
    width: min(280px, calc(100vw - 36px));
    padding: 18px;
    opacity: 1;
  }
}

@media(max-width: 520px) {
  .logo {
    font-size: 19px;
  }

  .floating-qr-box img {
    width: 138px;
    height: 138px;
  }
}
