/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #1e1e1e;
  --bg-secondary: #2d2d2d;
  --bg-glass: rgba(45, 45, 45, 0.25);
  --accent-blue: #5a9cf0;
  --accent-blue-hover: #7ab3f8;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Canvas粒子背景 */
#particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 导航栏 - 液态玻璃效果 */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

/* 语言切换器样式 - 炫酷版本 */
.language-switcher {
  margin-left: 2rem;
  position: relative;
}

.language-switcher .el-dropdown-link {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(90, 156, 240, 0.15), rgba(122, 179, 248, 0.15));
  border: none !important;
  outline: none !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(90, 156, 240, 0.5);
  box-shadow: none !important;
}

/* 发光边框动画 */
.language-switcher .el-dropdown-link::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 14px;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(90, 156, 240, 0.8) 50%, 
    transparent 70%);
  background-size: 200% 200%;
  animation: borderGlow 3s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.language-switcher .el-dropdown-link:hover::before {
  opacity: 1;
}

/* 背景光效 */
.language-switcher .el-dropdown-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(90, 156, 240, 0.3), 
    transparent);
  transition: left 0.5s ease;
}

.language-switcher .el-dropdown-link:hover::after {
  left: 100%;
}

/* 悬停效果 */
.language-switcher .el-dropdown-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 0 20px rgba(90, 156, 240, 0.4),
    0 0 40px rgba(90, 156, 240, 0.2),
    inset 0 0 20px rgba(90, 156, 240, 0.1);
  border: none;
}

/* 图标旋转动画 */
.language-switcher .el-dropdown-link img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 5px rgba(90, 156, 240, 0.6));
}

.language-switcher .el-dropdown-link:hover img {
  transform: rotate(180deg) scale(1.1);
}

/* 文字发光脉冲 */
@keyframes textPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(90, 156, 240, 0.5);
  }
  50% {
    text-shadow: 
      0 0 20px rgba(90, 156, 240, 0.8),
      0 0 30px rgba(90, 156, 240, 0.6),
      0 0 40px rgba(90, 156, 240, 0.4);
  }
}

.language-switcher .el-dropdown-link:hover {
  animation: textPulse 2s ease-in-out infinite;
}

/* 边框发光动画 */
@keyframes borderGlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 粒子装饰点 */
.language-switcher::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: 0 0 10px var(--accent-blue);
  transition: all 0.3s ease;
}

.language-switcher:hover::before {
  animation: particleOrbit 2s linear infinite;
  opacity: 1;
}

@keyframes particleOrbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(40px);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(40px);
    opacity: 0;
  }
}

/* 点击波纹效果 */
.language-switcher .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(90, 156, 240, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Element Plus 下拉菜单深色主题适配 */
.el-dropdown-menu {
  background-color: var(--bg-secondary) !important;
  border: none !important;
  box-shadow: 0 4px 20px var(--shadow-color) !important;
}

.el-dropdown-menu__item {
  color: var(--text-primary) !important;
}

.el-dropdown-menu__item:hover {
  background-color: rgba(90, 156, 240, 0.2) !important;
  color: var(--accent-blue) !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
}

.hero-content {
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(90deg, #5a9cf0, #7ab3f8, #ffffff, #7ab3f8, #5a9cf0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  opacity: 0;
  animation: colorFlow 3s linear infinite;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.9rem;
  opacity: 0;
}

.feature-tag img {
  width: 20px;
  height: 20px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn img {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 15px rgba(90, 156, 240, 0.3);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 156, 240, 0.4);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(62, 62, 62, 0.8);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90, 156, 240, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

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

@keyframes colorFlow {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

/* Section通用样式 */
section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* 液态玻璃卡片 */
.glass-card {
  background: rgba(30, 30, 30, 0.1);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* 光折射边框效果 */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(90, 156, 240, 0.4),
    rgba(122, 179, 248, 0.2),
    rgba(255, 255, 255, 0.3),
    rgba(122, 179, 248, 0.2),
    rgba(90, 156, 240, 0.4)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.35s ease;
}

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

.glass-card:hover {
  background: rgba(30, 30, 30, 0.25);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(90, 156, 240, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Features Section */
.features {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  width: 100%;
}

/* Element Plus Carousel 样式覆盖 */
.carousel-container .el-carousel {
  background: transparent !important;
}

.carousel-container .el-carousel__container {
  background: transparent !important;
  height: 500px !important;
}

.carousel-container .el-carousel__item {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container .el-carousel__arrow {
  background: rgba(45, 45, 45, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-container .el-carousel__arrow:hover {
  background: var(--accent-blue);
}

.carousel-container .el-carousel__indicators {
  bottom: -30px;
}

.carousel-container .el-carousel__indicator button {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  opacity: 1;
}

.carousel-container .el-carousel__indicator.is-active button {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* 移除旧的轮播样式 */
.carousel {
  display: none;
}

.screenshot-card {
  padding: 1.5rem;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screenshot-card img {
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.screenshot-caption {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Download Section */
.download {
  max-width: 1000px;
  margin: 0 auto;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.download-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.download-header {
  margin-bottom: 2rem;
}

.download-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.download-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.download-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
}

.download-btn img {
  width: 20px;
  height: 20px;
}

/* Gitee 卡片 */
.gitee-card {
  --gitee: #e6461a;
  --glow-color: rgba(230, 70, 26, 0.15);
  --glow-shadow: rgba(230, 70, 26, 0.3);
}

.gitee-card:hover {
  border-color: rgba(230, 70, 26, 0.25);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(230, 70, 26, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.gitee-icon {
  border-radius: 12px;
}

.gitee-btn {
  background: var(--gitee, #e6461a);
  color: white;
  box-shadow: 0 4px 15px rgba(230, 70, 26, 0.3);
}

.gitee-btn:hover {
  background: #f0552a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 70, 26, 0.4);
}

/* 系统要求卡片 */
.system-req-card {
  padding: 2rem 2.5rem;
}

.system-requirements {
  text-align: left;
}

.system-requirements h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.system-requirements ul {
  list-style: none;
  padding: 0;
}

.system-requirements li {
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--accent-blue);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  transition: all 0.25s ease;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.system-requirements li:hover {
  background: rgba(90, 156, 240, 0.08);
  border-left-color: var(--accent-blue-hover);
  transform: translateX(4px);
}

.system-requirements li:last-child {
  border-left-color: #888;
}

/* Tech Stack Section */
.tech-stack {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-card {
  padding: 2rem;
}

.tech-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  text-align: center;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow-color);
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 156, 240, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(90, 156, 240, 0.15);
}

.tech-name {
  font-weight: 500;
  color: var(--text-primary);
}

.tech-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a img {
  width: 20px;
  height: 20px;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-license {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-license p {
  margin: 0.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #5a9cf0, #7ab3f8, #ffffff, #7ab3f8, #5a9cf0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorFlow 3s linear infinite;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .carousel-container .el-carousel__container {
    height: 350px !important;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .download-card {
    padding: 2rem 1.5rem;
  }
  
  .features-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== 加载动画 ===== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(90, 156, 240, 0.15);
  border-top-color: var(--accent-blue);
  animation: loaderSpin 1.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  position: relative;
  box-shadow: 0 0 30px rgba(90, 156, 240, 0.1);
}

.loader-ring::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: rgba(122, 179, 248, 0.4);
  animation: loaderSpin 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

.loader-logo {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  filter: drop-shadow(0 0 12px rgba(90, 156, 240, 0.4));
  animation: loaderLogoPulse 2s ease-in-out infinite;
}

@keyframes loaderLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(90, 156, 240, 0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(90, 156, 240, 0.7)); }
}

.loader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-hover));
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(90, 156, 240, 0.5);
  transition: width 0.3s ease;
}

.loader-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
}
