:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --secondary-text: #8e8e93;
  --accent-color: #0071e3;
  --border-color: rgba(255, 255, 255, 0.1);
  --site-glass: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-color);
  scrollbar-gutter: stable;
  scrollbar-color: rgba(45, 180, 255, 0.72) rgba(255, 255, 255, 0.035);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

* {
  scrollbar-color: rgba(45, 180, 255, 0.72) rgba(255, 255, 255, 0.035);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid rgba(4, 8, 16, 0.86);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #42f5ff 0%, #0071e3 52%, #7c3cff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(0, 113, 227, 0.56);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #67fff8 0%, #168cff 48%, #a16cff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 24px rgba(66, 245, 255, 0.7);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

#ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, rgba(0, 113, 227, 0.25), transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(100, 50, 255, 0.2), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(0, 220, 150, 0.15), transparent 60%);
  background-size: 150% 150%;
  filter: blur(80px);
  animation: ambientFlow 4s ease-in-out infinite alternate;
}

@keyframes ambientFlow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 50% 100%; }
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.site-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.site-logo-area:hover {
  text-decoration: none;
}

.site-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

.site-nav-links {
  display: flex;
  gap: 30px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--secondary-text);
}

.site-nav a.active {
  color: #fff;
}

.site-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #42f5ff, var(--accent-color), #7c3cff);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.65);
}

.site-footer {
  padding: 100px 10% 120px;
  background: #000;
}

.site-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
  gap: 48px;
}

.site-footer-left h2 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 40px;
}

.site-contact-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.site-contact-group h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-text);
  margin: 0 0 20px;
}

.site-contact-pills {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-pill {
  padding: 12px 28px;
  border-radius: 40px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-pill:hover {
  opacity: 0.8;
  transform: scale(1.02);
  text-decoration: none;
}

.site-pill-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.site-pill-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.site-stats {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-wrap: wrap;
}

#uptime-stats {
  margin-top: 16px;
  font-family: monospace;
}

.site-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-stat-item i {
  color: var(--accent-color);
  font-size: 14px;
}

.site-stat-item .unit {
  margin-left: 2px;
  opacity: 0.8;
}

.site-copyright {
  color: var(--secondary-text);
  margin: 24px 0 8px;
}

.site-tagline {
  color: var(--secondary-text);
  font-size: 12px;
  margin: 0;
}

.site-ai-credit {
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(0, 113, 227, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 113, 227, 0.2);
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 360px;
}

.site-ai-credit i {
  color: var(--accent-color);
  font-size: 14px;
}

.site-ai-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.45;
}

.site-ai-credit span {
  color: var(--secondary-text);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.site-ai-credit a,
.site-ai-credit .site-ai-name {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

#wechat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#wechat-modal.active {
  display: flex;
}

.site-modal-content {
  background: #1c1c1e;
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--border-color);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#wechat-modal.active .site-modal-content {
  transform: scale(1);
}

.site-modal-content img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.site-modal-content p {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

#fabBack {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0071e3;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

#fabBack:hover {
  background: #0077ed;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.55);
}

#fabBack:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-nav {
    padding: 15px 20px;
  }

  .site-nav-links {
    gap: 15px;
  }

  .site-nav-links a {
    font-size: 13px;
  }

  .site-footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding-top: 40px;
  }

  .site-footer-left h2 {
    font-size: 32px;
  }
}
