:root {
  --bg-dark: #0a0b0d;
  --nav-bg: rgba(10, 11, 13, 0.85);
  --yellow-primary: #f8d44c;
  --yellow-hover: #ffdf6b;
  --purple-primary: #4e299c;
  --purple-hover: #6236bd;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --nav-active: #f8d44c;
  --font-main: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  overflow-x: hidden;
}

/* 布局容器 */
.page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--yellow-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightning {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 14px solid #000;
  transform: skewX(-20deg);
  position: relative;
}

.lightning::after {
  content: "";
  position: absolute;
  top: 8px;
  left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 14px solid #000;
}

.logo-text {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.main-nav a {
  color: var(--text-white);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--nav-active);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--nav-active);
}

.arrow-down {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
  vertical-align: middle;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-icon {
  cursor: pointer;
  font-size: 18px;
}

.header-download-btn {
  background: var(--yellow-primary);
  color: #000;
  border: none;
  padding: 6px 16px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.header-download-btn:hover {
  background: var(--yellow-hover);
}

.login-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

/* 英雄区 */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景窗口装饰 */
.bg-windows-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(30, 40, 60, 0.4) 0%, var(--bg-dark) 80%);
}

.window-item {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 0.6;
}

.win-1 { width: 300px; height: 180px; top: 10%; left: 5%; transform: rotate(-5deg); background-image: linear-gradient(45deg, #1a2a3a, #0a1a2a); }
.win-2 { width: 280px; height: 160px; top: 15%; right: 5%; transform: rotate(8deg); background-image: linear-gradient(-45deg, #2a1a3a, #1a0a2a); }
.win-3 { width: 320px; height: 200px; bottom: 10%; left: 2%; transform: rotate(3deg); background-image: linear-gradient(135deg, #1a3a2a, #0a2a1a); }
.win-4 { width: 350px; height: 220px; bottom: 5%; right: 2%; transform: rotate(-4deg); background-image: linear-gradient(-135deg, #3a2a1a, #2a1a0a); }

.win-main {
  width: 800px;
  height: 480px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 1;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 25, 35, 0.8);
  backdrop-filter: blur(5px);
}

.main-window-content {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(80, 100, 255, 0.1) 0%, transparent 70%);
}

/* 英雄文案 */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.sub-title {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* 下载按钮组 */
.download-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.download-btn-wrapper {
  position: relative;
}

.btn-ld9, .btn-ld14 {
  width: 240px;
  height: 64px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-ld9 {
  background: linear-gradient(to right, #f8d44c, #f1a03a);
  color: #000;
}

.btn-ld14 {
  background: linear-gradient(to right, #4e299c, #8e44ad);
  color: #fff;
}

.btn-ld9:hover, .btn-ld14:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-text {
  font-size: 20px;
  font-weight: bold;
}

.btn-version {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}

.beta-tag {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #f8d44c;
  color: #000;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
  z-index: 1;
}

/* 版本链接 */
.version-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.user-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  background-color: #333;
}

.avatar.av-1 { background-color: #e74c3c; margin-right: -10px; }
.avatar.av-2 { background-color: #3498db; }

.all-versions {
  color: var(--yellow-primary);
  text-decoration: none;
  font-size: 14px;
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.arrow-v {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0) rotate(45deg);}
  40% {transform: translateY(-10px) rotate(45deg);}
  60% {transform: translateY(-5px) rotate(45deg);}
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .win-main { width: 90%; height: auto; aspect-ratio: 16/9; }
  .main-title { font-size: 36px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .download-group { flex-direction: column; align-items: center; }
  .main-title { font-size: 28px; padding: 0 20px; }
  .win-1, .win-2, .win-3, .win-4 { display: none; }
}
