/* 首页特定样式 */

/* 导航栏 */
.home-header {
  background-color: var(--cyber-dark);
  border-bottom: 1px solid var(--cyber-accent);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  color: var(--cyber-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--cyber-accent);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--cyber-accent);
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link.highlight {
  border: 1px solid var(--cyber-accent);
  padding: 0.5rem 1rem;
  color: var(--cyber-accent);
}

.nav-link.highlight:hover {
  background-color: var(--cyber-accent);
  color: var(--cyber-dark);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.7);
}

/* 英雄区域 */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  animation: fadeIn 1s ease, slideInLeft 1s ease;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--cyber-text);
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #999;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-btn {
  background-color: var(--cyber-accent);
  color: var(--cyber-dark);
  border-color: var(--cyber-accent);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.primary-btn:hover {
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.7);
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: transparent;
  color: var(--cyber-text);
  border-color: var(--cyber-text);
}

.secondary-btn:hover {
  background-color: var(--cyber-text);
  color: var(--cyber-dark);
  box-shadow: 0 0 10px rgba(224, 224, 224, 0.5);
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease, slideInRight 1s ease;
}

/* 终端窗口 */
.terminal-window {
  width: 100%;
  max-width: 500px;
  background-color: var(--cyber-dark);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.terminal-header {
  background-color: #333;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.terminal-buttons {
  display: flex;
  gap: 0.375rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background-color: #ff5f57;
}

.terminal-button.yellow {
  background-color: #ffbd2e;
}

.terminal-button.green {
  background-color: #28c940;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: #999;
}

.terminal-content {
  height: 300px;
  padding: 1rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
  color: var(--cyber-text);
  overflow-y: auto;
}

/* 内容部分通用样式 */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--cyber-accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title span {
  color: var(--cyber-accent);
}

/* 特点部分 */
.features-section {
  background-color: var(--cyber-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: rgba(30, 30, 30, 0.6);
  padding: 2rem;
  border: 1px solid #333;
  transition: all 0.3s;
  animation: fadeIn 1s ease;
}

.feature-card:hover {
  border-color: var(--cyber-accent);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--cyber-accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #999;
  line-height: 1.6;
}

/* 工具部分 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background-color: var(--cyber-light);
  border: 1px solid #333;
  padding: 1.5rem;
  transition: all 0.3s;
}

.tool-card:hover {
  border-color: var(--cyber-accent);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--cyber-accent);
}

.tool-card p {
  color: #999;
  line-height: 1.6;
}

/* 资源部分 */
.resources-section {
  background-color: var(--cyber-light);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background-color: rgba(30, 30, 30, 0.6);
  padding: 2rem;
  border: 1px solid #333;
  transition: all 0.3s;
}

.resource-card:hover {
  border-color: var(--cyber-accent);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--cyber-text);
}

.resource-card p {
  color: #999;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.resource-link {
  color: var(--cyber-accent);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
  transition: all 0.3s;
}

.resource-link:hover {
  color: #fff;
  transform: translateX(5px);
}

/* 下载部分 */
.download-section-large {
  background-color: var(--cyber-dark);
  text-align: center;
  padding: 5rem 1rem;
}

.download-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cyber-text);
}

.download-description {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: #999;
}

.download-btn-large {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite alternate;
}

.download-icon-large {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  display: inline-block;
  animation: bounce 1s infinite alternate;
}

.version-info {
  font-size: 0.875rem;
  color: #666;
}

/* 页脚 */
.main-footer {
  background-color: var(--cyber-darker);
  border-top: 1px solid #333;
  padding-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0 1rem 3rem;
}

.cyber-logo.small {
  font-size: 1.5rem;
}

.footer-links h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--cyber-text);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #999;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.875rem;
}

.footer-links ul li a:hover {
  color: var(--cyber-accent);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: #666;
  font-size: 0.875rem;
}

/* 动画 */
@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .download-title {
    font-size: 2rem;
  }
  
  .terminal-window {
    margin-top: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .nav-link {
    font-size: 0.75rem;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
} 