* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* 自定义鼠标样式 */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: none;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: none;
}

.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* 开屏动画 */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-content {
  text-align: center;
}

.logo-animation .brand-name {
  font-size: 4rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  animation: fadeInScale 1s ease-out;
}

.logo-animation .preloader-logo-icon {
  font-size: 6rem;
  color: #000000;
  margin-bottom: 2rem;
  display: block;
  animation: fadeInScale 1s ease-out;
}

.logo-animation .preloader-logo-image {
  max-width: 300px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInScale 1s ease-out;
}

.loading-bar {
  width: 100%;
  max-width: 300px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  animation: loadingProgress 2s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loadingProgress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* 页面切换动画 - 淡入淡出效果 */
#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

#page-transition.active {
  opacity: 1;
  visibility: visible;
}

/* 导航栏 */
.navbar {
  background-color: transparent;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand:hover {
  color: var(--color-accent);
}

.navbar-brand i {
  font-size: 1.75rem;
}

.navbar-brand .brand-logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar-brand .brand-text {
  display: inline-block;
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1.5rem !important;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.btn-login {
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  margin-left: 1rem;
}

.btn-login:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary) !important;
}

/* 按钮样式 */
.btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

/* 通用样式 */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--color-bg-light);
}

/* Footer */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-secondary);
  padding: 4rem 0 2rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.footer-contact i {
  margin-right: 0.5rem;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  position: relative;
}

.social-links a:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}

/* 二维码弹出层 */
.social-link-with-qr {
  position: relative;
}

.qr-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 10px;
  min-width: 180px;
}

.qr-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

.social-link-with-qr:hover .qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.qr-popup img {
  width: 150px;
  height: 150px;
  display: block;
  border: 2px solid #f0f0f0;
  border-radius: 4px;
}

.qr-popup p {
  margin: 0.5rem 0 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
  margin-left: 0.5rem;
}

.footer-bottom a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-padding {
    padding: 4rem 0;
  }
}

@media (min-width: 769px) {
  body {
    cursor: none;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: block;
  }
}
