:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --dark: #0f172a;
  --darker: #0a0f1f;
  --light: #f1f5f9;
  --gray: #94a3b8;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--darker), var(--dark));
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: default;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  backdrop-filter: blur(10px);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo img {
  color: var(--primary);
  margin-right: 10px;
  height: 2rem;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

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

.cta-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* 英雄区域 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  width: 50%;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray);
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-model {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  z-index: 1;
}

.hero-model-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.app-ui {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url(./assets/Preview2.7.2CN.png) no-repeat center center;
  background-size: contain;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(15deg) rotateX(10deg);
  transition: transform 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-ui:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* 功能特点 */
.features {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 70px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

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

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  opacity: 0;
}

.feature-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--gray);
  font-size: 1rem;
}

/* 下载区域 */
.downloads {
  padding: 100px 0;
  background: rgba(15, 23, 42, 0.7);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.download-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.download-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.os-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.windows .os-icon {
  color: #0078d7;
}

.macos .os-icon {
  color: #a2aaad;
}

.linux .os-icon {
  color: #fcc624;
}

.download-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.version-info {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
  margin: 15px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 关于项目 */
.about {
  padding: 100px 0;
}

.branches {
  display: flex;
  gap: 30px;
  margin-top: 50px;
}

.branch-card {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.branch-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.branch-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-card h3 i {
  color: var(--primary);
}

.branch-card ul {
  list-style: none;
  margin: 20px 0;
}

.branch-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.branch-card li i {
  color: var(--secondary);
  margin-right: 10px;
  width: 20px;
}

.license {
  background: rgba(99, 102, 241, 0.1);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
}

/* 页脚 */
footer {
  background: rgba(10, 15, 31, 0.8);
  padding: 50px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  color: var(--gray);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-content {
    width: 100%;
    text-align: center;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-model {
    display: none;
  }

  .branches {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
