/* 深色高档主题 - 云峰插件 */
:root {
  --bg-primary: #0f0f12;
  --bg-secondary: #16161a;
  --bg-tertiary: #1e1e22;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --accent: #00c1ff; /* 科技蓝 */
  --accent-hover: #00eaff;
  --card-bg: rgba(30, 30, 35, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0a0a0f, #121218);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: rgba(15, 15, 18, 0.7); /* 半透明黑 */
}

/* 英雄区域 */
.hero {
  text-align: center;
  padding: 8rem 1rem 5rem;
  position: relative;
  overflow: hidden;
  background: transparent; /* 关键：不要自己设背景 */
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,193,255,0.05) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.8; /* 可选：调低一点亮度 */
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  background: linear-gradient(to right, #ffffff, #a0d8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin: 0 10px;
  box-shadow: 0 4px 20px rgba(0, 193, 255, 0.2);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 193, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(0, 193, 255, 0.1);
}

/* 预览区域 */
.preview {
  background: var(--bg-secondary);
  padding: 5rem 0;
  text-align: center;
}

.preview h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.carousel-container {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}

.carousel img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.4s ease;
}

.carousel-btn {
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-btn:hover {
  background: rgba(0, 193, 255, 0.3);
}

/* 功能亮点 */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 0;
  background: var(--bg-primary);
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  width: 240px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 工具栏模块 */
.freedom-modules {
  text-align: center;
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.freedom-modules h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.freedom-modules p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* 下载区域 - 黑化高档 */
.download-section {
  background: linear-gradient(135deg, #0c0c12, #14141c) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
  margin: 4rem auto !important;
  padding: 2px !important; /* 保留边框效果 */
}

.download-section > div {
  background: var(--card-bg) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
}

.download-section h2 {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
}

.download-section a {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #e0e0ff !important;
}

.download-section a:hover {
  border-color: var(--accent) !important;
  background: rgba(0, 193, 255, 0.1) !important;
  color: white !important;
}

#dynamic-changelog {
  background: rgba(0, 0, 0, 0.3) !important;
  color: var(--text-secondary) !important;
}

/* 关于 & 统计 */
.about, .stats {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-primary);
}

.about h2, .stats h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.stat-numbers {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat .num {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent), #70f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat div:nth-child(2) {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .features {
    gap: 1.5rem;
  }
  .feature-card {
    width: 100%;
    max-width: 300px;
  }
}

/* ========== 下载区域 - 深色主题 ========== */
.download-section {
  margin: 4rem auto;
  max-width: 1120px;
  width: 90%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c0c12, #14141c);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  padding: 2px; /* 用于模拟边框渐变 */
}

.download-card {
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  min-width: 300px;
}

.download-card h2 {
  margin-top: 0;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  font-size: 1.8rem;
}

.download-info {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.download-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.badge {
  background: #ff4d4d;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

.download-links {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.download-item {
  display: block;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  color: #cbdfff;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.download-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(0, 193, 255, 0.1);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 193, 255, 0.2);
}

.download-baidu {
  background: rgba(92, 157, 255, 0.1);
  border-color: rgba(92, 157, 255, 0.3);
  color: #5c9dff;
}

.download-feiji {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.download-group {
  background: rgba(255, 152, 0, 0.1);
  border: 1px dashed rgba(255, 152, 0, 0.5);
  color: #ff9800;
  font-style: italic;
}

.changelog {
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.download-tips {
  padding: 16px;
  background: rgba(0, 30, 20, 0.2);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #a0e0c0;
}

.download-tips ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.download-tips code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffcc00;
}


/* 简洁预览图 */
.simple-preview {
  padding: 2rem 0;
  text-align: center;
}

/* 页脚 */
.site-footer {
  text-align: center;
  padding: 2rem 0 3rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

/* 英雄区按钮居中优化 */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== 顶部导航 - 深色高档风格 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 18, 0.92); /* 深色半透 */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  width: 40px; /* 建议 logo 小一点，更精致 */
  height: auto;
  border-radius: 8px;
  margin-right: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #a0d8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary); /* #a0a0b0 */
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent); /* #00c1ff */
}

/* 下划线动效（可选） */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 主内容下移，避免被 header 遮挡 */
.main-content {
  margin-top: 80px; /* 至少 = header 高度 + 安全余量 */
}


/* ========== 页脚 - 深色主题 ========== */
.site-footer {
  background: var(--card-bg); /* 通常为 rgba(0,0,0,0.2) 或 #121218 */
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--accent); /* 如 #00c1ff */
}

.footer-links a::after {
  content: '|';
  position: absolute;
  right: -8px;
  top: 0;
  color: var(--text-disabled);
}

.footer-links a:last-child::after {
  display: none; /* 最后一个不要“|” */
}

.copyright {
  text-align: center;
  line-height: 1.6;
}

.copyright a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--text-disabled);
  transition: all 0.2s ease;
}

.copyright a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.gongan-icon {
  vertical-align: middle;
  margin-right: 4px;
  width: 14px;
  height: 14px;
  filter: brightness(1.2); /* 如果图标是黑色，在深色背景下可稍提亮 */
}


/* ========== 友情链接 ========== */
.friend-links {
  padding: 2rem 0;
  text-align: center;
}

.friend-links h2 {
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  color: var(--text-primary);
}

.link-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.friend-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
}

.friend-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 193, 255, 0.08);
  transform: translateY(-2px);
}

/* ========== 星空背景 ========== */

.background-flow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 193, 255, 0.1), transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(0, 193, 255, 0.08), transparent 70%);
  background-position: 0% 0%, 100% 100%;
  background-size: 400% 400%, 400% 400%;
  animation: flowBg 12s infinite alternate;
  z-index: 0; /* 提高到 0，与粒子同层 */
  pointer-events: none;
}

@keyframes flowBg {
  from {
    background-position: 0% 0%, 100% 100%, 50% 0%;
  }
  to {
    background-position: 100% 100%, 0% 0%, 50% 100%;
  }
}


#particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* 比 .background-flow 高 */
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 193, 255, 0.4),
              0 0 12px rgba(0, 193, 255, 0.2);
  animation: twinkle var(--duration, 3s) infinite ease-in-out;
  z-index: 1;
}

@keyframes flowBg {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.7; }
}

/* ========== 动态光斑 - 宇宙氛围增强 ========== */
.glow-spot {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 193, 255, 0.25), transparent 70%);
  opacity: 0.2;
  animation: glow 10s infinite alternate;
  pointer-events: none; /* 不影响点击 */
  z-index: -1; /* 在内容下，但在星空粒子上？可调 */
}

@keyframes glow {
  0%, 100% { opacity: 0.15; transform: scale(0.9); }
  50% { opacity: 0.3; transform: scale(1.1); }
}



