/* 星空科技感主色调 */
:root {
  --primary-bg: #1B1F3B;
  --secondary-bg: #3A2C66;
  --card-bg: #23263a;
  --accent: #FF7E79;
  --teal: #73E0D9;
  --amber: #FFD6A5;
  --text-main: #F6F6F6;
  --text-secondary: #AAAAAA;
  --border: #2e3147;
}
body {
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  color: var(--text-main);
  font-family: 'Inter', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  margin: 0;
  min-height: 100vh;
}
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 48px 16px;
}
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  height: 56px;
  border-bottom: 1px solid var(--border);
  z-index: 10;
  gap: 48px;
}
.nav-lang, .nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}
.navbar a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.2s;
  padding: 8px 0;
  position: relative;
  z-index: 11;
  display: inline-block;
}
.navbar a:hover {
  color: var(--accent);
}
.lang-switcher {
  display: flex;
  gap: 8px;
}
.lang-switcher button, .lang-switcher a {
  background: var(--secondary-bg);
  color: var(--text-main);
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}
.lang-switcher button:hover, .lang-switcher a:hover {
  background: var(--accent);
  color: var(--primary-bg);
}
.card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(27,31,59,0.12);
  padding: 32px 24px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.hero {
  text-align: center;
  background: linear-gradient(120deg, var(--primary-bg) 60%, var(--secondary-bg) 100%);
  margin-top: 24px;
  margin-bottom: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8em;
  margin-bottom: 0.3em;
  color: var(--amber);
}
.hero p {
  font-size: 1.3em;
  color: var(--text-main);
  margin-bottom: 1.2em;
}
.cta-button {
  background: var(--accent);
  color: var(--primary-bg);
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(255,126,121,0.12);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.cta-button:hover {
  background: var(--teal);
  color: var(--primary-bg);
}
h2 {
  font-size: 1.6em;
  color: var(--teal);
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}
h3 {
  color: var(--amber);
  font-size: 1.2em;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}
p, li {
  color: var(--text-main);
  font-size: 1.08em;
  line-height: 1.7;
}
.gallery {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
}
.gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(115,224,217,0.10);
  border: 1px solid var(--teal);
  background: #222;
}
.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5em;
}
.video-card iframe {
  width: 100%;
  max-width: 480px;
  height: 270px;
  border-radius: 12px;
  border: 2px solid var(--teal);
  box-shadow: 0 2px 12px 0 rgba(115,224,217,0.10);
  margin-bottom: 0.8em;
}
footer.footer {
  background: var(--card-bg);
  color: var(--text-secondary);
  text-align: center;
  padding: 24px 0 16px 0;
  border-top: 1px solid var(--border);
  font-size: 1em;
  margin-top: 48px;
}
/* Grid system for improved layouts */
.grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.grid-col {
  display: flex;
  flex-direction: column;
}

/* Article and blog specific styles */
.meta {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 1.5em;
}

.meta time, .meta span {
  padding: 4px 12px;
  background: var(--secondary-bg);
  border-radius: 4px;
}

.content {
  line-height: 1.8;
}

.content pre {
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.content code {
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  background: var(--secondary-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.content pre code {
  background: none;
  padding: 0;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
}

.tag {
  background: var(--accent);
  color: var(--primary-bg);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85em;
  font-weight: 500;
}

/* Feature lists */
.feature-list, .resource-list {
  list-style: none;
  padding: 0;
}

.feature-list li, .resource-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.feature-list li:before, .resource-list li:before {
  content: "→";
  color: var(--teal);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* FAQ styling */
.faq-list {
  margin-top: 1em;
}

.faq-item {
  margin-bottom: 1.5em;
  padding: 1.5em;
  background: var(--secondary-bg);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--teal);
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2em;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .grid-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .cta-button {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  main {
    padding: 12px 2vw 32px 2vw;
  }
  .card {
    padding: 18px 16px;
  }
  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero h1 {
    font-size: 2.2em;
  }
  .gallery img {
    width: 100px;
    height: 70px;
  }
  .video-card iframe {
    max-width: 98vw;
    height: 180px;
  }
  h2 {
    font-size: 1.2em;
  }
  .tags {
    justify-content: center;
  }
} 