:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #4a4a4a;
  --glass: rgba(255, 255, 255, 0.48);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --bar-height: 72px;
  --radius-btn: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.bg-mask {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 40px;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.nav-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.nav-btn:active {
  transform: translateY(1px);
}

.nav-btn-primary {
  color: #fff;
  background: rgba(26, 26, 26, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-btn-primary:hover {
  color: #fff;
  background: rgba(26, 26, 26, 0.86);
}

.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--bar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 80px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.hero-btn:active {
  transform: translateY(0);
}

.hero-btn-primary {
  color: #fff;
  background: rgba(26, 26, 26, 0.72);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-btn-primary:hover {
  color: #fff;
  background: rgba(26, 26, 26, 0.86);
}

.contact-anchor {
  height: 1px;
}

.qq-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
}

.qq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #12b7f5;
  box-shadow: 0 10px 28px rgba(18, 183, 245, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qq-btn img {
  display: block;
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.qq-btn:hover,
.qq-widget.is-open .qq-btn {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px rgba(18, 183, 245, 0.45);
}

.qq-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 260px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.qq-pop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.qq-widget:hover .qq-pop,
.qq-widget:focus-within .qq-pop,
.qq-widget.is-open .qq-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.qq-qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.qq-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .logo {
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .qq-widget {
    right: 16px;
    bottom: 16px;
  }

  .qq-btn {
    width: 56px;
    height: 56px;
  }

  .qq-pop {
    width: 220px;
    padding: 14px 14px 12px;
  }

  .qq-note {
    font-size: 14px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-btn {
    min-width: 148px;
    min-height: 48px;
    padding: 0 22px;
    font-size: 16px;
  }
}
