@charset "utf-8";
/* @font-face {
    font-family: pixel;
    src: url("./fonts/PixelMplus12-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
} */

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

:root {
  --primary: #4f46e5; /* indigo-600 */
  --primary-light: #818cf8; /* indigo-400 */
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f9fafb 0%, #f0f4ff 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  /* font-family: 'pixel', '宋体'; */
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

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

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

nav a.active::after,
nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px; /* 调整间距 */
    max-width: 1200px;
    width: 100%;
}

.hero .content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    /* font-family: "pixel","宋体"; */
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}
/* 打字机容器 */
.typewriter {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
}

/* 文字渐变 */
#typed-text {
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline; /* 必须 inline-block 才能应用背景裁剪 */
}

/* 光标样式 */
.cursor {
  display: inline;
  color: #7c3aed;
  animation: blink 1s step-end infinite;
  margin-left: 4px; /* 可选：与文字留一点空隙 */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
}

.hero img {
    max-width: 500px;
    height: auto;
    flex: 1;
    object-fit: contain;
}

/* Features */
.features {
  padding: 60px 0;
}

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.feature-card h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* CTA */
.cta {
  padding: 60px 0;
  background: var(--bg-light);
  text-align: center;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.cta p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Footer */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  nav {
    gap: 16px;
  }

  .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero .content {
        margin-bottom: 20px;
    }

    .hero img {
        margin-top: 20px;
        max-width: 300px;
    }

  .hero p,
  .cta p {
    font-size: 16px;
  }
}