/* 公共样式：全站共享（变量、基础、Header、Footer、通用排版与按钮） */

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

:root {
  --primary: #948eff;
  --secondary: #6f6aff;
  --accent: #b6b1ff;
  --light: #f7f7f7;
  --dark: #2a2a3e;
  --gradient-1: linear-gradient(135deg, #948eff 0%, #6f6aff 100%);
  --gradient-2: linear-gradient(135deg, #f0edff 0%, #dcd8ff 100%);
  --gradient-3: linear-gradient(135deg, #6f6aff 0%, #948eff 100%);
  --text-dark: #2a2a3e;
  --text-light: #666;
  --bg-grey: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --header-height: 72px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

.geometric-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(148, 142, 255, 0.12) 35px,
      rgba(148, 142, 255, 0.12) 70px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(182, 177, 255, 0.1) 35px,
      rgba(182, 177, 255, 0.1) 70px
    );
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  height: var(--header-height);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  min-height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}
.logo-placeholder {
  width: 250px;
  height: var(--header-height);

}
.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  position: relative;
}
.nav-links a:hover {
  color: var(--primary);
  background: rgba(45, 90, 135, 0.05);
  border-color: rgba(45, 90, 135, 0.2);
}
.nav-links a.active {
  color: #fff;
  background: var(--gradient-1);
  border-color: var(--primary);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
  border-radius: 3px;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Common typography */
.page-content {
  background: var(--bg-white);
  margin-top: var(--header-height);
}
.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark);
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: var(--gradient-1);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--gradient-1);
}
.cta-button:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(45, 90, 135, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 4rem 5% 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-column p {
  margin-bottom: 0.8rem;
  line-height: 1.8;
  color: #b0b0b0;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  color: #888888;
  font-size: 0.9rem;
}

/* Social Media QR Code Hover Effect */
.social-links {
  list-style: none;
}

.social-item {
  margin-bottom: 0.8rem;
  display: block;
  width: auto;
}

.social-link {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.5rem 0;
  position: relative;
}

.social-link:hover {
  color: #ffffff;
}

.qr-code-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(10px);
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 12px;
  padding: 0.2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
width: 150px;
height: 150px;
  text-align: center;
  white-space: nowrap;
}

.social-link:hover .qr-code-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.qr-code-tooltip img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}

/* Arrow pointer for tooltip */
.qr-code-tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 3rem;
    transition: right 0.3s ease;
    gap: 1rem;
    z-index: 999;
    backdrop-filter: blur(10px);
  }
  .nav-links.active {
    right: 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Mobile QR Code Tooltip Adjustments */
  .qr-code-tooltip {
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 0.5rem;
    margin-left: 0;
  }
  
  .social-link:hover .qr-code-tooltip {
    transform: translateX(-50%) translateY(-5px);
  }
}
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }
}
