/* ===== 科技感主题样式 - GGDNet现代化改造 ===== */

/* === CSS变量系统 === */
:root {
  /* 色彩系统 - 现代化科技感配色 */
  --deep-space: #0a0a12;
  --cosmic-purple: #8a2be2;
  --neon-blue: #00b4d8;
  --tech-cyan: #00ffff;
  --electric-pink: #ff2a6d;
  --holographic-teal: #00e6b8;
  --matrix-green: #00ff41;
  --silver-mist: #e6e6e6;
  
  /* 玻璃效果参数 - 适配黑色背景 */
--glass-bg: rgba(0, 0, 0, 0.9);
--glass-border: rgba(100, 100, 100, 0.6);
--glass-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
--backdrop-blur: blur(15px);

/* 文字色彩 - 适配黑色背景 */
--text-primary: #ffffff;
--text-secondary: #cccccc;
--text-muted: #999999;
  
  /* 阴影效果 - 科技感光效 */
  --shadow-sm: 0 4px 16px rgba(0, 180, 216, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 255, 255, 0.25);
  --shadow-lg: 0 16px 48px rgba(138, 43, 226, 0.3);
  --glow-blue: 0 0 25px rgba(0, 180, 216, 0.6);
  --glow-purple: 0 0 25px rgba(138, 43, 226, 0.6);
  --glow-cyan: 0 0 25px rgba(0, 255, 255, 0.6);
  
  /* 间距系统 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* 边框圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* 动画时间 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === 基础样式重置 === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Google Sans', 'Noto Sans', sans-serif;
  background: #000000;
  color: #ffffff;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 移除星空背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
  z-index: -1;
}

/* === 排版系统 === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  color: #007acc;
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
}

a:hover {
  color: #005a9e;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #007acc;
  transition: var(--transition-normal);
}

a:hover::after {
  width: 100%;
}

/* === 玻璃形态效果基础 === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow), inset 0 0 20px rgba(138, 43, 226, 0.2);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: glassShine 3s ease-in-out infinite;
  pointer-events: none;
}

.glass:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(100, 100, 100, 0.4);
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-md), 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === 工具类 === */
.text-gradient {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--tech-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow: 0 0 10px currentColor;
}

/* === 动画关键帧 === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: var(--glass-shadow);
  }
  50% {
    box-shadow: var(--glass-shadow), var(--glow-blue);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glassShine {
  0%, 100% {
    opacity: 0;
    transform: rotate(45deg) translateX(-100%);
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translateX(100%);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === 响应式设计基础 === */
@media (max-width: 1200px) {
  html { font-size: 15px; }
  
  :root {
    --backdrop-blur: blur(15px);
    --glass-shadow: 0 8px 28px rgba(0, 180, 216, 0.2);
  }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .glass {
    border-radius: var(--radius-sm);
    backdrop-filter: blur(12px);
  }
  
  body::before {
    background: 
      radial-gradient(circle at 30% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 60%),
      radial-gradient(circle at 70% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 60%);
  }
}

@media (max-width: 480px) {
  html { font-size: 13px; }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  :root {
    --space-lg: 2rem;
    --space-xl: 4rem;
    --backdrop-blur: blur(10px);
  }
  
  .glass::before {
    animation-duration: 4s;
  }
}

/* === 滚动条美化 === */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 18, 0.8);
  border-radius: 6px;
  border: 1px solid rgba(138, 43, 226, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--cosmic-purple) 100%);
  border-radius: 6px;
  border: 2px solid rgba(10, 10, 18, 0.8);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--tech-cyan) 0%, var(--electric-pink) 100%);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
  transform: scale(1.05);
}

/* === 工具类动画 === */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-glowPulse {
  animation: glowPulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

/* 强制黑色背景覆盖 */
body,
body::before,
body.tech-theme,
.hero,
.hero-body,
.section,
.container,
.columns,
.column,
footer,
.footer {
  background: #000000 !important;
  background-color: #000000 !important;
}

body::before {
  background-image: none !important;
  background: #000000 !important;
}

:root {
  --warm-cream: #000000;
  --glass-bg: rgba(0, 0, 0, 0.9);
}