/* ABOUTME: 科技感二维码展示页面样式 */

/* ========== 基础重置与变量 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

:root {
  /* 科技感配色 */
  --primary-color: #00f0ff;
  --secondary-color: #bf00ff;
  --accent-color: #00ff88;
  --bg-dark: #0a0e17;
  --bg-card: rgba(15, 25, 45, 0.8);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-glow: rgba(0, 240, 255, 0.3);
  --card-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
  
  /* 尺寸 */
  --header-height: 120px;
  --footer-height: 80px;
  --card-gap: 24px;
  --container-padding: 24px;
  
  /* 动画 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========== 全局样式 ========== */
html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  position: relative;
}

/* ========== 背景动画 ========== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 网格线背景 */
.grid-lines {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* 浮动粒子 */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 15s infinite ease-in-out;
  box-shadow: 0 0 10px var(--primary-color);
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-100px) translateX(50px); }
  50% { transform: translateY(-50px) translateX(-30px); }
  75% { transform: translateY(-150px) translateX(20px); }
}

/* ========== 主应用容器 ========== */
#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== 头部 ========== */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--container-padding);
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.95) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glow);
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

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

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  filter: drop-shadow(0 0 10px var(--primary-color));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ========== 主内容区 ========== */
.main-container {
  flex: 1;
  padding: var(--container-padding);
  padding-top: 40px;
  padding-bottom: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ========== 卡片网格布局 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

/* ========== 卡片样式 ========== */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 
    0 0 60px rgba(0, 240, 255, 0.2),
    inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.card:hover::before {
  opacity: 1;
}

/* QR码容器 */
.qr-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(191, 0, 255, 0.05));
}

.qr-code {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code canvas,
.qr-code img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}



.card:hover  {
  opacity: 1;
}


/* 卡片标题 */
.card-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-top: 1vh;
}

/* ========== 底部 ========== */
.footer {
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--container-padding);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 23, 0.95) 100%);
  border-top: 1px solid var(--border-glow);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

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

.footer-content p {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ========== 响应式设计 ========== */

/* PC端 (> 1200px) - 4列 */
@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .main-container {
    max-width: 1600px;
  }
}

/* 平板和手机 (< 1200px) - 2列 */
@media (max-width: 1199px) {
  
  
  .main-container {
    padding: 30px 20px;
  }
}

/* 小屏手机 (< 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 10vh;
    --footer-height: 7vh;
    --card-gap: 12px;
    --container-padding: 12px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .tagline {
    font-size: 10px;
    letter-spacing: 2px;
  }
  
  .card {
    padding: 1rem;
  }
}

/* ========== 加载动画 ========== */
.card {
  animation: cardFadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }

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

/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
