/* 科技简约风格 - 简简云官网 */

/* CSS Variables */
:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #0d1526;
  --accent-cyan: #00D4FF;
  --accent-purple: #7B61FF;
  --accent-blue: #3B82F6;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --glow-cyan: rgba(0, 212, 255, 0.4);
  --glow-purple: rgba(123, 97, 255, 0.3);
}

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

/* Base */
html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 背景装饰 */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  animation-delay: -14s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 30px) scale(1.02);
  }
}

/* 粒子画布 */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 主容器 */
.main-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.content-container {
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

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

/* Logo */
.logo-wrapper {
  margin-bottom: 2.5rem;
}

.logo-icon {
  width: 120px;
  height: 120px;
  animation: logoRotate 30s linear infinite, logoPulse 3s ease-in-out infinite;
}

@keyframes logoRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px var(--glow-cyan));
  }
  50% {
    filter: drop-shadow(0 0 40px var(--glow-cyan)) drop-shadow(0 0 60px var(--glow-purple));
  }
}

/* 品牌名称 */
.brand-name {
  margin-bottom: 1.5rem;
}

.brand-text {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

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

/* Slogan */
.slogan-wrapper {
  margin-bottom: 3rem;
}

.slogan-text {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
}

.slogan-highlight {
  position: relative;
  color: var(--text-primary);
  font-weight: 500;
}

.slogan-highlight::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
  animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* 装饰线 */
.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0.4;
}

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: dotPulse 2s ease-in-out infinite;
}

.divider-dot:nth-child(2) {
  animation-delay: 0.3s;
  background: var(--accent-purple);
}

.divider-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

/* Footer */
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.3;
}

.copyright {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
}

.icp-license {
  font-size: 0.75rem;
  color: #6b7280;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.icp-license:hover,
.icp-license:visited {
  color: var(--accent-cyan);
}

/* 响应式适配 */
@media (max-width: 640px) {
  .main-wrapper {
    padding: 1.5rem;
  }

  .logo-icon {
    width: 90px;
    height: 90px;
  }

  .brand-text {
    letter-spacing: 0.05em;
  }

  .slogan-text {
    letter-spacing: 0.08em;
  }

  .slogan-highlight::after {
    height: 1px;
    bottom: -6px;
  }

  .gradient-orb {
    filter: blur(60px);
  }

  .orb-1 {
    width: 300px;
    height: 300px;
  }

  .orb-2 {
    width: 250px;
    height: 250px;
  }

  .orb-3 {
    width: 200px;
    height: 200px;
  }
}

/* 深色主题优化 */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--bg-primary);
  }
}

/* 动画优化 - 尊重用户减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
