* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1E293B;
}

::-webkit-scrollbar-thumb {
  background: #4CAF50;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d8b40;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#navbar.scroll {
  background-color: rgba(30, 41, 59, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mc-shadow {
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
}

.mc-shadow:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
}

.mc-shadow:active {
  transform: translate(0px, 0px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.5);
}

a {
  transition: all 0.2s ease;
}

.server-indicator {
  animation: pulse 2s infinite;
}

.download-btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.download-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.download-btn:hover::after {
  left: 100%;
}

.footer-link:hover {
  transform: translateX(3px);
}

.feature-icon {
  transition: all 0.3s ease;
  will-change: transform;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  will-change: max-height;
}

#mobileMenu.open {
  max-height: 500px;
}

.loader {
  border-top-color: #4CAF50;
  animation: spinner 0.8s linear infinite;
}

.chart-container {
  position: relative;
  height: 100%;
  width: 100%;
}

.rule-card {
  transition: all 0.2s ease;
  will-change: background-color;
}

.rule-card:hover {
  background-color: rgba(30, 41, 59, 0.7);
}

.server-info-card {
  border: 1px solid rgba(76, 175, 80, 0.2);
  transition: border-color 0.3s ease;
}

.server-info-card:hover {
  border-color: rgba(76, 175, 80, 0.5);
}

.white-icon {
  filter: brightness(0) invert(1);
  width: 18px;
  height: 18px;
}

.douyin-logo {
  width: 18px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.wechat-popup {
  pointer-events: none;
  width: 200px;
}

.wechat-popup img {
  width: 100%;
  height: auto;
  max-width: 130px;
  margin: 0 auto;
  display: block;
}

.wechat-popup p {
  font-size: 12px;
  padding: 0 8px 8px;
}

.wechat-container:hover .wechat-popup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -5px);
}

.wechat-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

@media (max-width: 768px) {
  .pixel-border::after {
    border-width: 1px;
  }
  
  .mc-shadow {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}